﻿using BonjourQuotation.ObjectModel.AccountData;
using BonjourQuotation.ObjectModel.BusinessData;
using BonjourQuotation.UI.Models;
using BonjourQuotation.UI.Models.BaseModel;
using BonjourQuotation.UI.ServiceManagers;
using BonjourQuotation.ObjectModel.LoggerData;
using iTextSharp.text;
using iTextSharp.text.pdf;
using Microsoft.Reporting.WebForms;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;


namespace BonjourQuotation.UI.Controllers
{
    public class BaseController : Controller
    {
        BaseManager BManager;
        public List<string> UserRegions { get; set; }
        protected static Dictionary<string, bool> IsCreateSession = new Dictionary<string, bool>();
        protected static Dictionary<string, int> LockedQuotaList = new Dictionary<string, int>();
        protected UserAllPermissionsViewModel AllPermVModel;
        private readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        protected override void OnException(ExceptionContext filterContext)
        {
            if (!filterContext.ExceptionHandled)
            {
               // string controller = filterContext.RouteData.Values["controller"].ToString();
                string action = filterContext.RouteData.Values["action"].ToString();
                Exception ex = filterContext.Exception;
                
                logger.Error(ex.ToMessageAndCompleteStacktrace() + " Action -" + action);
               // RedirectToAction("Error", "Home");
            }
        }
        public BaseController()
        {
            BManager = new BaseManager();
            AllPermVModel = new UserAllPermissionsViewModel();
            if (System.Web.HttpContext.Current.User != null)
            {
                if (System.Web.HttpContext.Current.User.Identity.Name != null && System.Web.HttpContext.Current.User.Identity.Name != "")
                {
                    var UserName = System.Web.HttpContext.Current.User.Identity.Name;
                    if (System.Web.HttpContext.Current.Session[UserName] == null)
                    {
                        System.Web.HttpContext.Current.Session[UserName] = BManager.GetPermssions(UserName);
                        if (IsCreateSession.Any(ses => ses.Key == UserName))
                        {
                            IsCreateSession[UserName] = false;
                        }
                        else
                        {
                            IsCreateSession.Add(UserName, false);
                        }
                    }
                    else if (IsCreateSession[UserName])
                    {
                        System.Web.HttpContext.Current.Session[UserName] = BManager.GetPermssions(UserName);
                        IsCreateSession[UserName] = false;
                    }
                    UserRegions = BManager.GetUserRegions(UserName);
                    AllPermVModel = InitUserProfile((UserAllPermissionsBData)(System.Web.HttpContext.Current.Session[UserName]));
                }
            }
        }
        protected void SetQuotaPermissionsFlase(UserAllPermissionsViewModel QuotaVModel)
        {
            QuotaVModel.QuotaDetailCreateGirGroupEdit = false;
            QuotaVModel.QuotaDetailCreateGroupSeriesEdit = false;
            QuotaVModel.QuotaDetailDownloadProposalView = false;
            QuotaVModel.QuotaDetailUploadProposalView = false;
            QuotaVModel.QuotaDetailNewBtnView = false;
            QuotaVModel.QuotaDetailSaveBtnView = false;
            QuotaVModel.QuotaDetailSaveAsBtnView = false;
            QuotaVModel.QuotaDetailPreviewBtnView = false;
            QuotaVModel.QuotaMiscRemoveBtnView = false;
            QuotaVModel.QuotaMiscInsertBtnView = false;
            QuotaVModel.QuotaMiscNewLineBtnView = false;
            QuotaVModel.QuotaMiscUpdateBtnView = false;
            QuotaVModel.QuotaLunchDinRemoveBtnView = false;
            QuotaVModel.QuotaLunchDinInsertBtnView = false;
            QuotaVModel.QuotaLunchDinNewLineBtnView = false;
            QuotaVModel.QuotaLunchDinUpdateBtnView = false;
            QuotaVModel.QuotaHotelRemoveBtnView = false;
            QuotaVModel.QuotaHotelInsertBtnView = false;
            QuotaVModel.QuotaHotelNewLineBtnView = false;
            QuotaVModel.QuotaHotelUpdateBtnView = false;
            QuotaVModel.QuotaGuideRemoveBtnView = false;
            QuotaVModel.QuotaGuideInsertBtnView = false;
            QuotaVModel.QuotaGuideNewLineBtnView = false;
            QuotaVModel.QuotaGuideUpdateBtnView = false;
            QuotaVModel.QuotaEntranceRemoveBtnView = false;
            QuotaVModel.QuotaEntranceInsertBtnView = false;
            QuotaVModel.QuotaEntranceNewLineBtnView = false;
            QuotaVModel.QuotaEntranceUpdateBtnView = false;
            QuotaVModel.QuotaBusRemoveBtnView = false;
            QuotaVModel.QuotaBusInsertBtnView = false;
            QuotaVModel.QuotaBusNewLineBtnView = false;
            QuotaVModel.QuotaBusUpdateBtnView = false;
            QuotaVModel.QuotaCostPriceCalculateCostBtnView = false;
        }
        protected void AddQuotaToLockedList(string UserName, int QuotaID)
        {
            if (LockedQuotaList.Any(lqt => lqt.Key == UserName))
            {
                if (LockedQuotaList.Any(lqt => lqt.Value == QuotaID && lqt.Key != UserName))
                {
                    LockedQuotaList.Remove(UserName);
                }
                else
                {
                    LockedQuotaList[UserName] = QuotaID;
                }
            }
            else if (!LockedQuotaList.Any(lqt => lqt.Value == QuotaID && lqt.Key != UserName))
            {
                LockedQuotaList.Add(UserName, QuotaID);
            }
        }
        protected string LockUnLockQuotaToLockedList(string UserName, int QuotaID)
        {
            if (LockedQuotaList.Any(lqt => lqt.Key == UserName))
            {
                LockedQuotaList.Remove(UserName);
                return "Yes";
            }
            else
            {
                var Blocker = IsLockedQuota(UserName, QuotaID);
                if (Blocker == "")
                {
                    LockedQuotaList.Add(UserName, QuotaID);
                    return "No";
                }
                return Blocker;
            }
        }
        protected string IsLockedQuota(string UserName, int QuotaID)
        {
            if (LockedQuotaList.Any(lqt => lqt.Value == QuotaID && lqt.Key != UserName))
            {
                return LockedQuotaList.Where(lqt => lqt.Value == QuotaID && lqt.Key != UserName).Select(lqt=>lqt.Key).SingleOrDefault();
            }
            return "";
        }
        protected void SetPermission(UserAllPermissionsViewModel OtherViewModel, UserAllPermissionsViewModel  PermVModel)
        {
            OtherViewModel.MenuView = PermVModel.MenuView;
            OtherViewModel.MenuManageView = PermVModel.MenuManageView;
            OtherViewModel.MenuManageCreateUserView = PermVModel.MenuManageCreateUserView;
            OtherViewModel.MenuManageCreateUserEdit = PermVModel.MenuManageCreateUserEdit;
            OtherViewModel.MenuManageCustomerView = PermVModel.MenuManageCustomerView;
            OtherViewModel.MenuManageCustomerEdit = PermVModel.MenuManageCustomerEdit;
            OtherViewModel.MenuManageSeasonView = PermVModel.MenuManageSeasonView;
            OtherViewModel.MenuManageSeasonEdit = PermVModel.MenuManageSeasonEdit;
            OtherViewModel.MenuManageGuideView = PermVModel.MenuManageGuideView;
            OtherViewModel.MenuManageGuideEdit = PermVModel.MenuManageGuideEdit;
            OtherViewModel.MenuManageEmployeeView = PermVModel.MenuManageEmployeeView;
            OtherViewModel.MenuManageEmployeeEdit = PermVModel.MenuManageEmployeeEdit;
            OtherViewModel.MenuManageVendorView = PermVModel.MenuManageVendorView;
            OtherViewModel.MenuManageVendorEdit = PermVModel.MenuManageVendorEdit;
            OtherViewModel.MenuManagePreferredView = PermVModel.MenuManagePreferredView;
            OtherViewModel.MenuManagePreferredEdit = PermVModel.MenuManagePreferredEdit;
            OtherViewModel.MenuManageQuotationView = PermVModel.MenuManageQuotationView;
            OtherViewModel.MenuManageQuotationEdit = PermVModel.MenuManageQuotationEdit;
            OtherViewModel.MenuManageQuotationGroupsView = PermVModel.MenuManageQuotationGroupsView;
            OtherViewModel.MenuManageQuotationGroupsEdit = PermVModel.MenuManageQuotationGroupsEdit;
            OtherViewModel.MenuManageOptionalView = PermVModel.MenuManageOptionalView;
            OtherViewModel.MenuManageOptionalEdit = PermVModel.MenuManageOptionalEdit;
            OtherViewModel.MenuSetupView = PermVModel.MenuSetupView;
            OtherViewModel.MenuSetupCompanyView = PermVModel.MenuSetupCompanyView;
            OtherViewModel.MenuSetupCompanyEdit = PermVModel.MenuSetupCompanyEdit;
            OtherViewModel.MenuSetupBankView = PermVModel.MenuSetupBankView;
            OtherViewModel.MenuSetupBankEdit = PermVModel.MenuSetupBankEdit;
            OtherViewModel.MenuSetupCreditCardView = PermVModel.MenuSetupCreditCardView;
            OtherViewModel.MenuSetupCreditCardEdit = PermVModel.MenuSetupCreditCardEdit;
            OtherViewModel.MenuSetupPayTypeView = PermVModel.MenuSetupPayTypeView;
            OtherViewModel.MenuSetupPayTypeEdit = PermVModel.MenuSetupPayTypeEdit;
            OtherViewModel.MenuSetupServiceTypeView = PermVModel.MenuSetupServiceTypeView;
            OtherViewModel.MenuSetupServiceTypeEdit = PermVModel.MenuSetupServiceTypeEdit;
            OtherViewModel.MenuSetupServiceView = PermVModel.MenuSetupServiceView;
            OtherViewModel.MenuSetupServiceEdit = PermVModel.MenuSetupServiceEdit;
            OtherViewModel.MenuSetupVendorTypeView = PermVModel.MenuSetupVendorTypeView;
            OtherViewModel.MenuSetupVendorTypeEdit = PermVModel.MenuSetupVendorTypeEdit;
            OtherViewModel.MenuSetupDetailTypeView = PermVModel.MenuSetupDetailTypeView;
            OtherViewModel.MenuSetupDetailTypeEdit = PermVModel.MenuSetupDetailTypeEdit;
            OtherViewModel.MenuSetupDetailView = PermVModel.MenuSetupDetailView;
            OtherViewModel.MenuSetupDetailEdit = PermVModel.MenuSetupDetailEdit;
            OtherViewModel.MenuSetupRegionView = PermVModel.MenuSetupRegionView;
            OtherViewModel.MenuSetupRegionEdit = PermVModel.MenuSetupRegionEdit;
            OtherViewModel.MenuSetupAreaView = PermVModel.MenuSetupAreaView;
            OtherViewModel.MenuSetupAreaEdit = PermVModel.MenuSetupAreaEdit;
            OtherViewModel.MenuSetupStateView = PermVModel.MenuSetupStateView;
            OtherViewModel.MenuSetupStateEdit = PermVModel.MenuSetupStateEdit;
            OtherViewModel.MenuSetupCountryView = PermVModel.MenuSetupCountryView;
            OtherViewModel.MenuSetupCountryEdit = PermVModel.MenuSetupCountryEdit;
            OtherViewModel.MenuSetupQRegionView = PermVModel.MenuSetupQRegionView;
            OtherViewModel.MenuSetupQRegionEdit = PermVModel.MenuSetupQRegionEdit;
            OtherViewModel.MenuSetupTechDetailView = PermVModel.MenuSetupTechDetailView;
            OtherViewModel.MenuSetupTechDetailEdit = PermVModel.MenuSetupTechDetailEdit;
            OtherViewModel.MenuSetupCityView = PermVModel.MenuSetupCityView;
            OtherViewModel.MenuSetupCityEdit = PermVModel.MenuSetupCityEdit;
            OtherViewModel.MenuSetupVendorConfirmStatusView = PermVModel.MenuSetupVendorConfirmStatusView;
            OtherViewModel.MenuSetupVendorConfirmStatusEdit = PermVModel.MenuSetupVendorConfirmStatusEdit;
            OtherViewModel.MenuSetupSpecialDatesView = PermVModel.MenuSetupSpecialDatesView;
            OtherViewModel.MenuSetupSpecialDatesEdit = PermVModel.MenuSetupSpecialDatesEdit;
            OtherViewModel.MenuReportView = PermVModel.MenuReportView;
            OtherViewModel.MenuCustomerReportView = PermVModel.MenuCustomerReportView;
            OtherViewModel.MenuGroupReportView = PermVModel.MenuGroupReportView;
            OtherViewModel.MenuReportCustomerARDaysView = PermVModel.MenuReportCustomerARDaysView;
            OtherViewModel.MenuReportCustomerARDaysEdit = PermVModel.MenuReportCustomerARDaysEdit;
            OtherViewModel.MenuReportCustomerInvSumView = PermVModel.MenuReportCustomerInvSumView;
            OtherViewModel.MenuReportCustomerInvSumEdit = PermVModel.MenuReportCustomerInvSumEdit;
            OtherViewModel.MenuReportCustomerPaymentView = PermVModel.MenuReportCustomerPaymentView;
            OtherViewModel.MenuReportCustomerPaymentEdit = PermVModel.MenuReportCustomerPaymentEdit;
            OtherViewModel.MenuReportCustomerPayTypeView = PermVModel.MenuReportCustomerPayTypeView;
            OtherViewModel.MenuReportCustomerPayTypeEdit = PermVModel.MenuReportCustomerPayTypeEdit;
            OtherViewModel.MenuReportCustomerGroupView = PermVModel.MenuReportCustomerGroupView;
            OtherViewModel.MenuReportCustomerGroupEdit = PermVModel.MenuReportCustomerGroupEdit;
            OtherViewModel.MenuReportVendorGroupView = PermVModel.MenuReportVendorGroupView;
            OtherViewModel.MenuReportVendorGroupEdit = PermVModel.MenuReportVendorGroupEdit;
            OtherViewModel.MenuReportGuideGroupView = PermVModel.MenuReportGuideGroupView;
            OtherViewModel.MenuReportGuideGroupEdit = PermVModel.MenuReportGuideGroupEdit;
            OtherViewModel.MenuReportGuideListView = PermVModel.MenuReportGuideListView;
            OtherViewModel.MenuReportGuideListEdit = PermVModel.MenuReportGuideListEdit;
            OtherViewModel.MenuReportGrpCityRoomDayView = PermVModel.MenuReportGrpCityRoomDayView;
            OtherViewModel.MenuReportGrpCityRoomDayEdit = PermVModel.MenuReportGrpCityRoomDayEdit;
            OtherViewModel.MenuReportCntCustGrpBalanceView = PermVModel.MenuReportCntCustGrpBalanceView;
            OtherViewModel.MenuReportCntCustGrpBalanceEdit = PermVModel.MenuReportCntCustGrpBalanceEdit;
            OtherViewModel.MenuReportCntCustGrpRevenueView = PermVModel.MenuReportCntCustGrpRevenueView;
            OtherViewModel.MenuReportCntCustGrpRevenueEdit = PermVModel.MenuReportCntCustGrpRevenueEdit;
            OtherViewModel.MenuReportGroupGuideView = PermVModel.MenuReportGroupGuideView;
            OtherViewModel.MenuReportGroupGuideEdit = PermVModel.MenuReportGroupGuideEdit;
            OtherViewModel.MenuReportCustomerRefundView = PermVModel.MenuReportCustomerRefundView;
            OtherViewModel.MenuReportCustomerRefundEdit = PermVModel.MenuReportCustomerRefundEdit;
            OtherViewModel.MenuReportGrpRegRoomDayView = PermVModel.MenuReportGrpRegRoomDayView;
            OtherViewModel.MenuReportGrpRegRoomDayEdit = PermVModel.MenuReportGrpRegRoomDayEdit;
            OtherViewModel.QuotaDetailCreateGirGroupEdit = PermVModel.QuotaDetailCreateGirGroupEdit;
            OtherViewModel.QuotaDetailCreateGroupSeriesEdit = PermVModel.QuotaDetailCreateGroupSeriesEdit;
            OtherViewModel.QuotaDetailDownloadProposalView = PermVModel.QuotaDetailDownloadProposalView;
            OtherViewModel.QuotaDetailUploadProposalView = PermVModel.QuotaDetailUploadProposalView;
            OtherViewModel.QuotaDetailNewBtnView = PermVModel.QuotaDetailNewBtnView;
            OtherViewModel.QuotaDetailSaveBtnView = PermVModel.QuotaDetailSaveBtnView;
            OtherViewModel.QuotaDetailSaveAsBtnView = PermVModel.QuotaDetailSaveAsBtnView;
            OtherViewModel.QuotaDetailPreviewBtnView = PermVModel.QuotaDetailPreviewBtnView;
            OtherViewModel.QuotaMiscRemoveBtnView = PermVModel.QuotaMiscRemoveBtnView;
            OtherViewModel.QuotaMiscInsertBtnView = PermVModel.QuotaMiscInsertBtnView;
            OtherViewModel.QuotaMiscNewLineBtnView = PermVModel.QuotaMiscNewLineBtnView;
            OtherViewModel.QuotaMiscUpdateBtnView = PermVModel.QuotaMiscUpdateBtnView;
            OtherViewModel.QuotaLunchDinRemoveBtnView = PermVModel.QuotaLunchDinRemoveBtnView;
            OtherViewModel.QuotaLunchDinInsertBtnView = PermVModel.QuotaLunchDinInsertBtnView;
            OtherViewModel.QuotaLunchDinInsertBtnView = PermVModel.QuotaLunchDinInsertBtnView;
            OtherViewModel.QuotaLunchDinNewLineBtnView = PermVModel.QuotaLunchDinNewLineBtnView;
            OtherViewModel.QuotaLunchDinUpdateBtnView = PermVModel.QuotaLunchDinUpdateBtnView;
            OtherViewModel.QuotaHotelRemoveBtnView = PermVModel.QuotaHotelRemoveBtnView;
            OtherViewModel.QuotaHotelInsertBtnView = PermVModel.QuotaHotelInsertBtnView;
            OtherViewModel.QuotaHotelNewLineBtnView = PermVModel.QuotaHotelNewLineBtnView;
            OtherViewModel.QuotaHotelUpdateBtnView = PermVModel.QuotaHotelUpdateBtnView;
            OtherViewModel.QuotaGuideRemoveBtnView = PermVModel.QuotaGuideRemoveBtnView;
            OtherViewModel.QuotaGuideInsertBtnView = PermVModel.QuotaGuideInsertBtnView;
            OtherViewModel.QuotaGuideNewLineBtnView = PermVModel.QuotaGuideNewLineBtnView;
            OtherViewModel.QuotaGuideUpdateBtnView = PermVModel.QuotaGuideUpdateBtnView;
            OtherViewModel.QuotaEntranceRemoveBtnView = PermVModel.QuotaEntranceRemoveBtnView;
            OtherViewModel.QuotaEntranceInsertBtnView = PermVModel.QuotaEntranceInsertBtnView;
            OtherViewModel.QuotaEntranceNewLineBtnView = PermVModel.QuotaEntranceNewLineBtnView;
            OtherViewModel.QuotaEntranceUpdateBtnView = PermVModel.QuotaEntranceUpdateBtnView;
            OtherViewModel.QuotaBusRemoveBtnView = PermVModel.QuotaBusRemoveBtnView;
            OtherViewModel.QuotaBusInsertBtnView = PermVModel.QuotaBusInsertBtnView;
            OtherViewModel.QuotaBusNewLineBtnView = PermVModel.QuotaBusNewLineBtnView;
            OtherViewModel.QuotaBusUpdateBtnView = PermVModel.QuotaBusUpdateBtnView;
            OtherViewModel.QuotaCostPriceCalculateCostBtnView = PermVModel.QuotaCostPriceCalculateCostBtnView;
            //Operation Hotel
            OtherViewModel.OperationHotelFixedColumnCount = PermVModel.OperationHotelFixedColumnCount;
            OtherViewModel.OperationHotelGroupCodeView = PermVModel.OperationHotelGroupCodeView;
            OtherViewModel.OperationHotelGroupCodeEdit = PermVModel.OperationHotelGroupCodeEdit;
            OtherViewModel.OperationHotelGroupCodeFilter = PermVModel.OperationHotelGroupCodeFilter;
            OtherViewModel.OperationHotelGroupCodeLineNo = PermVModel.OperationHotelGroupCodeLineNo;
            OtherViewModel.OperationHotelCustomerView = PermVModel.OperationHotelCustomerView;
            OtherViewModel.OperationHotelCustomerEdit = PermVModel.OperationHotelCustomerEdit;
            OtherViewModel.OperationHotelCustomerFilter = PermVModel.OperationHotelCustomerFilter;
            OtherViewModel.OperationHotelCustomerLineNo = PermVModel.OperationHotelCustomerLineNo;
            OtherViewModel.OperationHotelDetailsView = PermVModel.OperationHotelDetailsView;
            OtherViewModel.OperationHotelDetailsLineNo = PermVModel.OperationHotelDetailsLineNo;
            OtherViewModel.OperationHotelGroupStatusView = PermVModel.OperationHotelGroupStatusView;
            OtherViewModel.OperationHotelGroupStatusEdit = PermVModel.OperationHotelGroupStatusEdit;
            OtherViewModel.OperationHotelGroupStatusFilter = PermVModel.OperationHotelGroupStatusFilter;
            OtherViewModel.OperationHotelGroupStatusLineNo = PermVModel.OperationHotelGroupStatusLineNo;
            OtherViewModel.OperationHotelGroupNameView = PermVModel.OperationHotelGroupNameView;
            OtherViewModel.OperationHotelGroupNameEdit = PermVModel.OperationHotelGroupNameEdit;
            OtherViewModel.OperationHotelGroupNameFilter = PermVModel.OperationHotelGroupNameFilter;
            OtherViewModel.OperationHotelGroupNameLineNo = PermVModel.OperationHotelGroupNameLineNo;
            OtherViewModel.OperationHotelArrivalDateView = PermVModel.OperationHotelArrivalDateView;
            OtherViewModel.OperationHotelArrivalDateEdit = PermVModel.OperationHotelArrivalDateEdit;
            OtherViewModel.OperationHotelArrivalDateLineNo = PermVModel.OperationHotelArrivalDateLineNo;
            OtherViewModel.OperationHotelDepartureDateView = PermVModel.OperationHotelDepartureDateView;
            OtherViewModel.OperationHotelDepartureDateEdit = PermVModel.OperationHotelDepartureDateEdit;
            OtherViewModel.OperationHotelDepartureDateLineNo = PermVModel.OperationHotelDepartureDateLineNo;
            OtherViewModel.OperationHotelRoomCountView = PermVModel.OperationHotelRoomCountView;
            OtherViewModel.OperationHotelRoomCountEdit = PermVModel.OperationHotelRoomCountEdit;
            OtherViewModel.OperationHotelRoomCountLineNo = PermVModel.OperationHotelRoomCountLineNo;
            OtherViewModel.OperationHotelEmployeeView = PermVModel.OperationHotelEmployeeView;
            OtherViewModel.OperationHotelEmployeeEdit = PermVModel.OperationHotelEmployeeEdit;
            OtherViewModel.OperationHotelEmployeeLineNo = PermVModel.OperationHotelEmployeeLineNo;
            OtherViewModel.OperationHotelVendorStatusView = PermVModel.OperationHotelVendorStatusView;
            OtherViewModel.OperationHotelVendorStatusEdit = PermVModel.OperationHotelVendorStatusEdit;
            OtherViewModel.OperationHotelVendorStatusFilter = PermVModel.OperationHotelVendorStatusFilter;
            OtherViewModel.OperationHotelVendorStatusLineNo = PermVModel.OperationHotelVendorStatusLineNo;
            OtherViewModel.OperationHotelVendorNameView = PermVModel.OperationHotelVendorNameView;
            OtherViewModel.OperationHotelVendorNameEdit = PermVModel.OperationHotelVendorNameEdit;
            OtherViewModel.OperationHotelVendorNameFilter = PermVModel.OperationHotelVendorNameFilter;
            OtherViewModel.OperationHotelVendorNameLineNo = PermVModel.OperationHotelVendorNameLineNo;
            OtherViewModel.OperationHotelCityView = PermVModel.OperationHotelCityView;
            OtherViewModel.OperationHotelCityEdit = PermVModel.OperationHotelCityEdit;
            OtherViewModel.OperationHotelCityFilter = PermVModel.OperationHotelCityFilter;
            OtherViewModel.OperationHotelCityLineNo = PermVModel.OperationHotelCityLineNo;
            OtherViewModel.OperationHotelAddressView = PermVModel.OperationHotelAddressView;
            OtherViewModel.OperationHotelAddressEdit = PermVModel.OperationHotelAddressEdit;
            OtherViewModel.OperationHotelAddressLineNo = PermVModel.OperationHotelAddressLineNo;
            OtherViewModel.OperationHotelPhoneView = PermVModel.OperationHotelPhoneView;
            OtherViewModel.OperationHotelPhoneEdit = PermVModel.OperationHotelPhoneEdit;
            OtherViewModel.OperationHotelPhoneLineNo = PermVModel.OperationHotelPhoneLineNo;
            OtherViewModel.OperationHotelNameOfContactPersonView = PermVModel.OperationHotelNameOfContactPersonView;
            OtherViewModel.OperationHotelNameOfContactPersonEdit = PermVModel.OperationHotelNameOfContactPersonEdit;
            OtherViewModel.OperationHotelNameOfContactPersonLineNo = PermVModel.OperationHotelNameOfContactPersonLineNo;
            OtherViewModel.OperationHotelEmailView = PermVModel.OperationHotelEmailView;
            OtherViewModel.OperationHotelEmailEdit = PermVModel.OperationHotelEmailEdit;
            OtherViewModel.OperationHotelEmailLineNo = PermVModel.OperationHotelEmailLineNo;
            OtherViewModel.OperationHotelViewContractView = PermVModel.OperationHotelViewContractView;
            OtherViewModel.OperationHotelViewContractLineNo = PermVModel.OperationHotelViewContractLineNo;
            OtherViewModel.OperationHotelViewGroupContractView = PermVModel.OperationHotelViewGroupContractView;
            OtherViewModel.OperationHotelViewGroupContractLineNo = PermVModel.OperationHotelViewGroupContractLineNo;
            OtherViewModel.OperationHotelPaxView = PermVModel.OperationHotelPaxView;
            OtherViewModel.OperationHotelPaxEdit = PermVModel.OperationHotelPaxEdit;
            OtherViewModel.OperationHotelPaxLineNo = PermVModel.OperationHotelPaxLineNo;
            OtherViewModel.OperationHotelArrivalCityView = PermVModel.OperationHotelArrivalCityView;
            OtherViewModel.OperationHotelArrivalCityEdit = PermVModel.OperationHotelArrivalCityEdit;
            OtherViewModel.OperationHotelArrivalCityFilter = PermVModel.OperationHotelArrivalCityFilter;
            OtherViewModel.OperationHotelArrivalCityLineNo = PermVModel.OperationHotelArrivalCityLineNo;
            OtherViewModel.OperationHotelFileCompletationDaysView = PermVModel.OperationHotelFileCompletationDaysView;
            OtherViewModel.OperationHotelFileCompletationDaysEdit = PermVModel.OperationHotelFileCompletationDaysEdit;
            OtherViewModel.OperationHotelFileCompletationDaysLineNo = PermVModel.OperationHotelFileCompletationDaysLineNo;
            OtherViewModel.OperationHotelNightsView = PermVModel.OperationHotelNightsView;
            OtherViewModel.OperationHotelNightsEdit = PermVModel.OperationHotelNightsEdit;
            OtherViewModel.OperationHotelNightsLineNo = PermVModel.OperationHotelNightsLineNo;
            OtherViewModel.OperationHotelTotalCostView = PermVModel.OperationHotelTotalCostView;
            OtherViewModel.OperationHotelTotalCostEdit = PermVModel.OperationHotelTotalCostEdit;
            OtherViewModel.OperationHotelTotalCostLineNo = PermVModel.OperationHotelTotalCostLineNo;
            OtherViewModel.OperationHotelBreakDownTotalView = PermVModel.OperationHotelBreakDownTotalView;
            OtherViewModel.OperationHotelBreakDownTotalEdit = PermVModel.OperationHotelBreakDownTotalEdit;
            OtherViewModel.OperationHotelBreakDownTotalLineNo = PermVModel.OperationHotelBreakDownTotalLineNo;
            OtherViewModel.OperationHotelOutstandingBalanceView = PermVModel.OperationHotelOutstandingBalanceView;
            OtherViewModel.OperationHotelOutstandingBalanceEdit = PermVModel.OperationHotelOutstandingBalanceEdit;
            OtherViewModel.OperationHotelOutstandingBalanceLineNo = PermVModel.OperationHotelOutstandingBalanceLineNo;
            OtherViewModel.OperationHotelComAmountView = PermVModel.OperationHotelComAmountView;
            OtherViewModel.OperationHotelComAmountEdit = PermVModel.OperationHotelComAmountEdit;
            OtherViewModel.OperationHotelComAmountLineNo = PermVModel.OperationHotelComAmountLineNo;
            OtherViewModel.OperationHotelComDifferenceView = PermVModel.OperationHotelComDifferenceView;
            OtherViewModel.OperationHotelComDifferenceEdit = PermVModel.OperationHotelComDifferenceEdit;
            OtherViewModel.OperationHotelComDifferenceLineNo = PermVModel.OperationHotelComDifferenceLineNo;
            OtherViewModel.OperationHotelCurrencyView = PermVModel.OperationHotelCurrencyView;
            OtherViewModel.OperationHotelCurrencyEdit = PermVModel.OperationHotelCurrencyEdit;
            OtherViewModel.OperationHotelCurrencyLineNo = PermVModel.OperationHotelCurrencyLineNo;
            OtherViewModel.OperationHotelTotalInvoiceView = PermVModel.OperationHotelTotalInvoiceView;
            OtherViewModel.OperationHotelTotalInvoiceEdit = PermVModel.OperationHotelTotalInvoiceEdit;
            OtherViewModel.OperationHotelTotalInvoiceLineNo = PermVModel.OperationHotelTotalInvoiceLineNo;
            OtherViewModel.OperationHotelTotalPaidView = PermVModel.OperationHotelTotalPaidView;
            OtherViewModel.OperationHotelTotalPaidEdit = PermVModel.OperationHotelTotalPaidEdit;
            OtherViewModel.OperationHotelTotalPaidLineNo = PermVModel.OperationHotelTotalPaidLineNo;
            OtherViewModel.OperationHotelFirstPaymentView = PermVModel.OperationHotelFirstPaymentView;
            OtherViewModel.OperationHotelFirstPaymentEdit = PermVModel.OperationHotelFirstPaymentEdit;
            OtherViewModel.OperationHotelFirstPaymentLineNo = PermVModel.OperationHotelFirstPaymentLineNo;
            OtherViewModel.OperationHotelFirstPaymentMethodView = PermVModel.OperationHotelFirstPaymentMethodView;
            OtherViewModel.OperationHotelFirstPaymentMethodEdit = PermVModel.OperationHotelFirstPaymentMethodEdit;
            OtherViewModel.OperationHotelFirstPaymentMethodLineNo = PermVModel.OperationHotelFirstPaymentMethodLineNo;
            OtherViewModel.OperationHotelPayFirstDetailsView = PermVModel.OperationHotelPayFirstDetailsView;
            OtherViewModel.OperationHotelPayFirstDetailsLineNo = PermVModel.OperationHotelPayFirstDetailsLineNo;
            OtherViewModel.OperationHotelDateofFirstPaymentView = PermVModel.OperationHotelDateofFirstPaymentView;
            OtherViewModel.OperationHotelDateofFirstPaymentEdit = PermVModel.OperationHotelDateofFirstPaymentEdit;
            OtherViewModel.OperationHotelDateofFirstPaymentLineNo = PermVModel.OperationHotelDateofFirstPaymentLineNo;
            OtherViewModel.OperationHotelSecondPaymentView = PermVModel.OperationHotelSecondPaymentView;
            OtherViewModel.OperationHotelSecondPaymentEdit = PermVModel.OperationHotelSecondPaymentEdit;
            OtherViewModel.OperationHotelSecondPaymentLineNo = PermVModel.OperationHotelSecondPaymentLineNo;
            OtherViewModel.OperationHotelSecondPaymentMethodView = PermVModel.OperationHotelSecondPaymentMethodView;
            OtherViewModel.OperationHotelSecondPaymentMethodEdit = PermVModel.OperationHotelSecondPaymentMethodEdit;
            OtherViewModel.OperationHotelSecondPaymentMethodLineNo = PermVModel.OperationHotelSecondPaymentMethodLineNo;
            OtherViewModel.OperationHotelPaySecondDetailsView = PermVModel.OperationHotelPaySecondDetailsView;
            OtherViewModel.OperationHotelPaySecondDetailsLineNo = PermVModel.OperationHotelPaySecondDetailsLineNo;
            OtherViewModel.OperationHotelDateofSecondPaymentView = PermVModel.OperationHotelDateofSecondPaymentView;
            OtherViewModel.OperationHotelDateofSecondPaymentEdit = PermVModel.OperationHotelDateofSecondPaymentEdit;
            OtherViewModel.OperationHotelDateofSecondPaymentLineNo = PermVModel.OperationHotelDateofSecondPaymentLineNo;
            OtherViewModel.OperationHotelThirdPaymentView = PermVModel.OperationHotelThirdPaymentView;
            OtherViewModel.OperationHotelThirdPaymentEdit = PermVModel.OperationHotelThirdPaymentEdit;
            OtherViewModel.OperationHotelThirdPaymentLineNo = PermVModel.OperationHotelThirdPaymentLineNo;
            OtherViewModel.OperationHotelThirdPaymentMethodView = PermVModel.OperationHotelThirdPaymentMethodView;
            OtherViewModel.OperationHotelThirdPaymentMethodEdit = PermVModel.OperationHotelThirdPaymentMethodEdit;
            OtherViewModel.OperationHotelThirdPaymentMethodLineNo = PermVModel.OperationHotelThirdPaymentMethodLineNo;
            OtherViewModel.OperationHotelPayThirdDetailsView = PermVModel.OperationHotelPayThirdDetailsView;
            OtherViewModel.OperationHotelPayThirdDetailsLineNo = PermVModel.OperationHotelPayThirdDetailsLineNo;
            OtherViewModel.OperationHotelDateofThirdPaymentView = PermVModel.OperationHotelDateofThirdPaymentView;
            OtherViewModel.OperationHotelDateofThirdPaymentEdit = PermVModel.OperationHotelDateofThirdPaymentEdit;
            OtherViewModel.OperationHotelDateofThirdPaymentLineNo = PermVModel.OperationHotelDateofThirdPaymentLineNo;
            OtherViewModel.OperationHotelRefundReceivedfromHotelView = PermVModel.OperationHotelRefundReceivedfromHotelView;
            OtherViewModel.OperationHotelRefundReceivedfromHotelEdit = PermVModel.OperationHotelRefundReceivedfromHotelEdit;
            OtherViewModel.OperationHotelRefundReceivedfromHotelLineNo = PermVModel.OperationHotelRefundReceivedfromHotelLineNo;
            OtherViewModel.OperationHotelTotalChargedView = PermVModel.OperationHotelTotalChargedView;
            OtherViewModel.OperationHotelTotalChargedEdit = PermVModel.OperationHotelTotalChargedEdit;
            OtherViewModel.OperationHotelTotalChargedLineNo = PermVModel.OperationHotelTotalChargedLineNo;
            OtherViewModel.OperationHotelAuthDiffView = PermVModel.OperationHotelAuthDiffView;
            OtherViewModel.OperationHotelAuthDiffEdit = PermVModel.OperationHotelAuthDiffEdit;
            OtherViewModel.OperationHotelAuthDiffLineNo = PermVModel.OperationHotelAuthDiffLineNo;
            OtherViewModel.OperationHotelAccountingMemoView = PermVModel.OperationHotelAccountingMemoView;
            OtherViewModel.OperationHotelAccountingMemoEdit = PermVModel.OperationHotelAccountingMemoEdit;
            OtherViewModel.OperationHotelAccountingMemoLineNo = PermVModel.OperationHotelAccountingMemoLineNo;
            OtherViewModel.OperationHotelCommissionStatusView = PermVModel.OperationHotelCommissionStatusView;
            OtherViewModel.OperationHotelCommissionStatusEdit = PermVModel.OperationHotelCommissionStatusEdit;
            OtherViewModel.OperationHotelCommissionStatusLineNo = PermVModel.OperationHotelCommissionStatusLineNo;
            OtherViewModel.OperationHotelComPercentView = PermVModel.OperationHotelComPercentView;
            OtherViewModel.OperationHotelComPercentEdit = PermVModel.OperationHotelComPercentEdit;
            OtherViewModel.OperationHotelComPercentLineNo = PermVModel.OperationHotelComPercentLineNo;
            OtherViewModel.OperationHotelComReceivedView = PermVModel.OperationHotelComReceivedView;
            OtherViewModel.OperationHotelComReceivedEdit = PermVModel.OperationHotelComReceivedEdit;
            OtherViewModel.OperationHotelComReceivedLineNo = PermVModel.OperationHotelComReceivedLineNo;
            OtherViewModel.OperationHotelComDateReceivedView = PermVModel.OperationHotelComDateReceivedView;
            OtherViewModel.OperationHotelComDateReceivedEdit = PermVModel.OperationHotelComDateReceivedEdit;
            OtherViewModel.OperationHotelComDateReceivedLineNo = PermVModel.OperationHotelComDateReceivedLineNo;
            OtherViewModel.OperationHotelCheckNumberView = PermVModel.OperationHotelCheckNumberView;
            OtherViewModel.OperationHotelCheckNumberEdit = PermVModel.OperationHotelCheckNumberEdit;
            OtherViewModel.OperationHotelCheckNumberLineNo = PermVModel.OperationHotelCheckNumberLineNo;
            OtherViewModel.OperationHotelCheckNumberAmountView = PermVModel.OperationHotelCheckNumberAmountView;
            OtherViewModel.OperationHotelCheckNumberAmountEdit = PermVModel.OperationHotelCheckNumberAmountEdit;
            OtherViewModel.OperationHotelCheckNumberAmountLineNo = PermVModel.OperationHotelCheckNumberAmountLineNo;
            OtherViewModel.OperationHotelSGLView = PermVModel.OperationHotelSGLView;
            OtherViewModel.OperationHotelSGLEdit = PermVModel.OperationHotelSGLEdit;
            OtherViewModel.OperationHotelSGLLineNo = PermVModel.OperationHotelSGLLineNo;
            OtherViewModel.OperationHotelSGLAmountView = PermVModel.OperationHotelSGLAmountView;
            OtherViewModel.OperationHotelSGLAmountEdit = PermVModel.OperationHotelSGLAmountEdit;
            OtherViewModel.OperationHotelSGLAmountLineNo = PermVModel.OperationHotelSGLAmountLineNo;
            OtherViewModel.OperationHotelDBLView = PermVModel.OperationHotelDBLView;
            OtherViewModel.OperationHotelDBLEdit = PermVModel.OperationHotelDBLEdit;
            OtherViewModel.OperationHotelDBLLineNo = PermVModel.OperationHotelDBLLineNo;
            OtherViewModel.OperationHotelDBLAmountView = PermVModel.OperationHotelDBLAmountView;
            OtherViewModel.OperationHotelDBLAmountEdit = PermVModel.OperationHotelDBLAmountEdit;
            OtherViewModel.OperationHotelDBLAmountLineNo = PermVModel.OperationHotelDBLAmountLineNo;
            OtherViewModel.OperationHotelTWNView = PermVModel.OperationHotelTWNView;
            OtherViewModel.OperationHotelTWNEdit = PermVModel.OperationHotelTWNEdit;
            OtherViewModel.OperationHotelTWNLineNo = PermVModel.OperationHotelTWNLineNo;
            OtherViewModel.OperationHotelTWNAmountView = PermVModel.OperationHotelTWNAmountView;
            OtherViewModel.OperationHotelTWNAmountEdit = PermVModel.OperationHotelTWNAmountEdit;
            OtherViewModel.OperationHotelTWNAmountLineNo = PermVModel.OperationHotelTWNAmountLineNo;
            OtherViewModel.OperationHotelTRPLView = PermVModel.OperationHotelTRPLView;
            OtherViewModel.OperationHotelTRPLEdit = PermVModel.OperationHotelTRPLEdit;
            OtherViewModel.OperationHotelTRPLLineNo = PermVModel.OperationHotelTRPLLineNo;
            OtherViewModel.OperationHotelTRPLAmountView = PermVModel.OperationHotelTRPLAmountView;
            OtherViewModel.OperationHotelTRPLAmountEdit = PermVModel.OperationHotelTRPLAmountEdit;
            OtherViewModel.OperationHotelTRPLAmountLineNo = PermVModel.OperationHotelTRPLAmountLineNo;
            OtherViewModel.OperationHotelQUDView = PermVModel.OperationHotelQUDView;
            OtherViewModel.OperationHotelQUDEdit = PermVModel.OperationHotelQUDEdit;
            OtherViewModel.OperationHotelQUDLineNo = PermVModel.OperationHotelQUDLineNo;
            OtherViewModel.OperationHotelQUDAmountView = PermVModel.OperationHotelQUDAmountView;
            OtherViewModel.OperationHotelQUDAmountEdit = PermVModel.OperationHotelQUDAmountEdit;
            OtherViewModel.OperationHotelQUDAmountLineNo = PermVModel.OperationHotelQUDAmountLineNo;
            OtherViewModel.OperationHotelGuideView = PermVModel.OperationHotelGuideView;
            OtherViewModel.OperationHotelGuideEdit = PermVModel.OperationHotelGuideEdit;
            OtherViewModel.OperationHotelGuideLineNo = PermVModel.OperationHotelGuideLineNo;
            OtherViewModel.OperationHotelGuideAmountView = PermVModel.OperationHotelGuideAmountView;
            OtherViewModel.OperationHotelGuideAmountEdit = PermVModel.OperationHotelGuideAmountEdit;
            OtherViewModel.OperationHotelGuideAmountLineNo = PermVModel.OperationHotelGuideAmountLineNo;
            OtherViewModel.OperationHotelDriverView = PermVModel.OperationHotelDriverView;
            OtherViewModel.OperationHotelDriverEdit = PermVModel.OperationHotelDriverEdit;
            OtherViewModel.OperationHotelDriverLineNo = PermVModel.OperationHotelDriverLineNo;
            OtherViewModel.OperationHotelDriverAmountView = PermVModel.OperationHotelDriverAmountView;
            OtherViewModel.OperationHotelDriverAmountEdit = PermVModel.OperationHotelDriverAmountEdit;
            OtherViewModel.OperationHotelDriverAmountLineNo = PermVModel.OperationHotelDriverAmountLineNo;
            OtherViewModel.OperationHotelTaxView = PermVModel.OperationHotelTaxView;
            OtherViewModel.OperationHotelTaxEdit = PermVModel.OperationHotelTaxEdit;
            OtherViewModel.OperationHotelTaxLineNo = PermVModel.OperationHotelTaxLineNo;
            OtherViewModel.OperationHotelOccTaxView = PermVModel.OperationHotelOccTaxView;
            OtherViewModel.OperationHotelOccTaxEdit = PermVModel.OperationHotelOccTaxEdit;
            OtherViewModel.OperationHotelOccTaxLineNo = PermVModel.OperationHotelOccTaxLineNo;
            OtherViewModel.OperationHotelCBFView = PermVModel.OperationHotelCBFView;
            OtherViewModel.OperationHotelCBFEdit = PermVModel.OperationHotelCBFEdit;
            OtherViewModel.OperationHotelCBFLineNo = PermVModel.OperationHotelCBFLineNo;
            OtherViewModel.OperationHotelABFView = PermVModel.OperationHotelABFView;
            OtherViewModel.OperationHotelABFEdit = PermVModel.OperationHotelABFEdit;
            OtherViewModel.OperationHotelABFLineNo = PermVModel.OperationHotelABFLineNo;
            OtherViewModel.OperationHotelBagView = PermVModel.OperationHotelBagView;
            OtherViewModel.OperationHotelBagEdit = PermVModel.OperationHotelBagEdit;
            OtherViewModel.OperationHotelBagLineNo = PermVModel.OperationHotelBagLineNo;
            OtherViewModel.OperationHotelCompView = PermVModel.OperationHotelCompView;
            OtherViewModel.OperationHotelCompEdit = PermVModel.OperationHotelCompEdit;
            OtherViewModel.OperationHotelCompLineNo = PermVModel.OperationHotelCompLineNo;
            OtherViewModel.OperationHotelExtraCostView = PermVModel.OperationHotelExtraCostView;
            OtherViewModel.OperationHotelExtraCostEdit = PermVModel.OperationHotelExtraCostEdit;
            OtherViewModel.OperationHotelExtraCostLineNo = PermVModel.OperationHotelExtraCostLineNo;
            OtherViewModel.OperationHotelXLTDateView = PermVModel.OperationHotelXLTDateView;
            OtherViewModel.OperationHotelXLTDateEdit = PermVModel.OperationHotelXLTDateEdit;
            OtherViewModel.OperationHotelXLTDateLineNo = PermVModel.OperationHotelXLTDateLineNo;
            OtherViewModel.OperationHotelDateFileReceivedView = PermVModel.OperationHotelDateFileReceivedView;
            OtherViewModel.OperationHotelDateFileReceivedEdit = PermVModel.OperationHotelDateFileReceivedEdit;
            OtherViewModel.OperationHotelDateFileReceivedLineNo = PermVModel.OperationHotelDateFileReceivedLineNo;
            OtherViewModel.OperationHotelDateFileCompletedView = PermVModel.OperationHotelDateFileCompletedView;
            OtherViewModel.OperationHotelDateFileCompletedEdit = PermVModel.OperationHotelDateFileCompletedEdit;
            OtherViewModel.OperationHotelDateFileCompletedLineNo = PermVModel.OperationHotelDateFileCompletedLineNo;
            OtherViewModel.OperationHotelDayofArrivalView = PermVModel.OperationHotelDayofArrivalView;
            OtherViewModel.OperationHotelDayofArrivalEdit = PermVModel.OperationHotelDayofArrivalEdit;
            OtherViewModel.OperationHotelDayofArrivalFilter = PermVModel.OperationHotelDayofArrivalFilter;
            OtherViewModel.OperationHotelDayofArrivalLineNo = PermVModel.OperationHotelDayofArrivalLineNo;
            OtherViewModel.OperationHotelMonthofArrivalView = PermVModel.OperationHotelMonthofArrivalView;
            OtherViewModel.OperationHotelMonthofArrivalEdit = PermVModel.OperationHotelMonthofArrivalEdit;
            OtherViewModel.OperationHotelMonthofArrivalFilter = PermVModel.OperationHotelMonthofArrivalFilter;
            OtherViewModel.OperationHotelMonthofArrivalLineNo = PermVModel.OperationHotelMonthofArrivalLineNo;
            OtherViewModel.OperationHotelClientBookingCodeView = PermVModel.OperationHotelClientBookingCodeView;
            OtherViewModel.OperationHotelClientBookingCodeEdit = PermVModel.OperationHotelClientBookingCodeEdit;
            OtherViewModel.OperationHotelClientBookingCodeLineNo = PermVModel.OperationHotelClientBookingCodeLineNo;
            OtherViewModel.OperationHotelCheckInView = PermVModel.OperationHotelCheckInView;
            OtherViewModel.OperationHotelCheckInEdit = PermVModel.OperationHotelCheckInEdit;
            OtherViewModel.OperationHotelCheckInLineNo = PermVModel.OperationHotelCheckInLineNo;
            OtherViewModel.OperationHotelCheckOutView = PermVModel.OperationHotelCheckOutView;
            OtherViewModel.OperationHotelCheckOutEdit = PermVModel.OperationHotelCheckOutEdit;
            OtherViewModel.OperationHotelCheckOutLineNo = PermVModel.OperationHotelCheckOutLineNo;
            OtherViewModel.OperationHotelEstimatedNumberofRoomsView = PermVModel.OperationHotelEstimatedNumberofRoomsView;
            OtherViewModel.OperationHotelEstimatedNumberofRoomsEdit = PermVModel.OperationHotelEstimatedNumberofRoomsEdit;
            OtherViewModel.OperationHotelEstimatedNumberofRoomsFilter = PermVModel.OperationHotelEstimatedNumberofRoomsFilter;
            OtherViewModel.OperationHotelEstimatedNumberofRoomsLineNo = PermVModel.OperationHotelEstimatedNumberofRoomsLineNo;
            OtherViewModel.OperationHotelEstimatedNumberofPaxView = PermVModel.OperationHotelEstimatedNumberofPaxView;
            OtherViewModel.OperationHotelEstimatedNumberofPaxEdit = PermVModel.OperationHotelEstimatedNumberofPaxEdit;
            OtherViewModel.OperationHotelEstimatedNumberofPaxLineNo = PermVModel.OperationHotelEstimatedNumberofPaxLineNo;
            OtherViewModel.OperationHotelQuotedRoomView = PermVModel.OperationHotelQuotedRoomView;
            OtherViewModel.OperationHotelQuotedRoomEdit = PermVModel.OperationHotelQuotedRoomEdit;
            OtherViewModel.OperationHotelQuotedRoomLineNo = PermVModel.OperationHotelQuotedRoomLineNo;
            OtherViewModel.OperationHotelQuotedTaxView = PermVModel.OperationHotelQuotedTaxView;
            OtherViewModel.OperationHotelQuotedTaxEdit = PermVModel.OperationHotelQuotedTaxEdit;
            OtherViewModel.OperationHotelQuotedTaxLineNo = PermVModel.OperationHotelQuotedTaxLineNo;
            OtherViewModel.OperationHotelQuotedOccTaxView = PermVModel.OperationHotelQuotedOccTaxView;
            OtherViewModel.OperationHotelQuotedOccTaxEdit = PermVModel.OperationHotelQuotedOccTaxEdit;
            OtherViewModel.OperationHotelQuotedOccTaxLineNo = PermVModel.OperationHotelQuotedOccTaxLineNo;
            OtherViewModel.OperationHotelQuotedBrkView = PermVModel.OperationHotelQuotedBrkView;
            OtherViewModel.OperationHotelQuotedBrkEdit = PermVModel.OperationHotelQuotedBrkEdit;
            OtherViewModel.OperationHotelQuotedBrkLineNo = PermVModel.OperationHotelQuotedBrkLineNo;
            OtherViewModel.OperationHotelQuotedLgView = PermVModel.OperationHotelQuotedLgView;
            OtherViewModel.OperationHotelQuotedLgEdit = PermVModel.OperationHotelQuotedLgEdit;
            OtherViewModel.OperationHotelQuotedLgLineNo = PermVModel.OperationHotelQuotedLgLineNo;
            OtherViewModel.OperationHotelQuotedNightView = PermVModel.OperationHotelQuotedNightView;
            OtherViewModel.OperationHotelQuotedNightEdit = PermVModel.OperationHotelQuotedNightEdit;
            OtherViewModel.OperationHotelQuotedNightLineNo = PermVModel.OperationHotelQuotedNightLineNo;
            OtherViewModel.OperationHotelQuotedNoteView = PermVModel.OperationHotelQuotedNoteView;
            OtherViewModel.OperationHotelQuotedNoteEdit = PermVModel.OperationHotelQuotedNoteEdit;
            OtherViewModel.OperationHotelQuotedNoteLineNo = PermVModel.OperationHotelQuotedNoteLineNo;
            OtherViewModel.OperationHotelConfView = PermVModel.OperationHotelConfView;
            OtherViewModel.OperationHotelConfEdit = PermVModel.OperationHotelConfEdit;
            OtherViewModel.OperationHotelConfLineNo = PermVModel.OperationHotelConfLineNo;
            OtherViewModel.OperationHotelQuotedVendorNameView = PermVModel.OperationHotelQuotedVendorNameView;
            OtherViewModel.OperationHotelQuotedVendorNameEdit = PermVModel.OperationHotelQuotedVendorNameEdit;
            OtherViewModel.OperationHotelQuotedVendorNameLineNo = PermVModel.OperationHotelQuotedVendorNameLineNo;
            OtherViewModel.OperationHotelTechView = PermVModel.OperationHotelTechView;
            OtherViewModel.OperationHotelTechEdit = PermVModel.OperationHotelTechEdit;
            OtherViewModel.OperationHotelTechLineNo = PermVModel.OperationHotelTechLineNo;
            OtherViewModel.OperationHotelNotesView = PermVModel.OperationHotelNotesView;
            OtherViewModel.OperationHotelNotesEdit = PermVModel.OperationHotelNotesEdit;
            OtherViewModel.OperationHotelNotesLineNo = PermVModel.OperationHotelNotesLineNo;
            OtherViewModel.OperationHotelLunchView = PermVModel.OperationHotelLunchView;
            OtherViewModel.OperationHotelLunchEdit = PermVModel.OperationHotelLunchEdit;
            OtherViewModel.OperationHotelLunchLineNo = PermVModel.OperationHotelLunchLineNo;
            OtherViewModel.OperationHotelDinnerView = PermVModel.OperationHotelDinnerView;
            OtherViewModel.OperationHotelDinnerEdit = PermVModel.OperationHotelDinnerEdit;
            OtherViewModel.OperationHotelDinnerLineNo = PermVModel.OperationHotelDinnerLineNo;
            // Operation Room
            OtherViewModel.OperationRoomFixedColumnCount = PermVModel.OperationRoomFixedColumnCount;
            OtherViewModel.OperationRoomGroupNameView = PermVModel.OperationRoomGroupNameView;
            OtherViewModel.OperationRoomGroupNameEdit = PermVModel.OperationRoomGroupNameEdit;
            OtherViewModel.OperationRoomGroupNameLineNo = PermVModel.OperationRoomGroupNameLineNo;
            OtherViewModel.OperationRoomGroupCodeView = PermVModel.OperationRoomGroupCodeView;
            OtherViewModel.OperationRoomGroupCodeEdit = PermVModel.OperationRoomGroupCodeEdit;
            OtherViewModel.OperationRoomGroupCodeLineNo = PermVModel.OperationRoomGroupCodeLineNo;
            OtherViewModel.OperationRoomPaxinRoomView = PermVModel.OperationRoomPaxinRoomView;
            OtherViewModel.OperationRoomPaxinRoomEdit = PermVModel.OperationRoomPaxinRoomEdit;
            OtherViewModel.OperationRoomPaxinRoomLineNo = PermVModel.OperationRoomPaxinRoomLineNo;
            OtherViewModel.OperationRoomDeleteView = PermVModel.OperationRoomDeleteView;
            OtherViewModel.OperationRoomDeleteLineNo = PermVModel.OperationRoomDeleteLineNo;
            OtherViewModel.OperationRoomPaxView = PermVModel.OperationRoomPaxView;
            OtherViewModel.OperationRoomPaxEdit = PermVModel.OperationRoomPaxEdit;
            OtherViewModel.OperationRoomPaxLineNo = PermVModel.OperationRoomPaxLineNo;
            OtherViewModel.OperationRoomRoomTypeView = PermVModel.OperationRoomRoomTypeView;
            OtherViewModel.OperationRoomRoomTypeEdit = PermVModel.OperationRoomRoomTypeEdit;
            OtherViewModel.OperationRoomRoomTypeFilter = PermVModel.OperationRoomRoomTypeFilter;
            OtherViewModel.OperationRoomRoomTypeLineNo = PermVModel.OperationRoomRoomTypeLineNo;
            OtherViewModel.OperationRoomTitleView = PermVModel.OperationRoomTitleView;
            OtherViewModel.OperationRoomTitleEdit = PermVModel.OperationRoomTitleEdit;
            OtherViewModel.OperationRoomTitleFilter = PermVModel.OperationRoomTitleFilter;
            OtherViewModel.OperationRoomTitleLineNo = PermVModel.OperationRoomTitleLineNo;
            OtherViewModel.OperationRoomNamesView = PermVModel.OperationRoomNamesView;
            OtherViewModel.OperationRoomNamesEdit = PermVModel.OperationRoomNamesEdit;
            OtherViewModel.OperationRoomNamesLineNo = PermVModel.OperationRoomNamesLineNo;
            OtherViewModel.OperationRoomNotesView = PermVModel.OperationRoomNotesView;
            OtherViewModel.OperationRoomNotesEdit = PermVModel.OperationRoomNotesEdit;
            OtherViewModel.OperationRoomNotesLineNo = PermVModel.OperationRoomNotesLineNo;
            OtherViewModel.OperationRoomCustomerView = PermVModel.OperationRoomCustomerView;
            OtherViewModel.OperationRoomCustomerEdit = PermVModel.OperationRoomCustomerEdit;
            OtherViewModel.OperationRoomCustomerFilter = PermVModel.OperationRoomCustomerFilter;
            OtherViewModel.OperationRoomCustomerLineNo = PermVModel.OperationRoomCustomerLineNo;
            OtherViewModel.OperationRoomFBoardView = PermVModel.OperationRoomFBoardView;
            OtherViewModel.OperationRoomFBoardEdit = PermVModel.OperationRoomFBoardEdit;
            OtherViewModel.OperationRoomFBoardLineNo = PermVModel.OperationRoomFBoardLineNo;
            OtherViewModel.OperationRoomFBoardCountView = PermVModel.OperationRoomFBoardCountView;
            OtherViewModel.OperationRoomFBoardCountEdit = PermVModel.OperationRoomFBoardCountEdit;
            OtherViewModel.OperationRoomFBoardCountLineNo = PermVModel.OperationRoomFBoardCountLineNo;
            // Operation Bus
            OtherViewModel.OperationBusFixedColumnCount = PermVModel.OperationBusFixedColumnCount;
            OtherViewModel.OperationBusIsInvoiceView = PermVModel.OperationBusIsInvoiceView;
            OtherViewModel.OperationBusIsInvoiceEdit = PermVModel.OperationBusIsInvoiceEdit;
            OtherViewModel.OperationBusIsInvoiceLineNo = PermVModel.OperationBusIsInvoiceLineNo;
            OtherViewModel.OperationBusInvoicePriceView = PermVModel.OperationBusInvoicePriceView;
            OtherViewModel.OperationBusInvoicePriceEdit = PermVModel.OperationBusInvoicePriceEdit;
            OtherViewModel.OperationBusInvoicePriceLineNo = PermVModel.OperationBusInvoicePriceLineNo;
            OtherViewModel.OperationBusGroupCodeView = PermVModel.OperationBusGroupCodeView;
            OtherViewModel.OperationBusGroupCodeEdit = PermVModel.OperationBusGroupCodeEdit;
            OtherViewModel.OperationBusGroupCodeFilter = PermVModel.OperationBusGroupCodeFilter;
            OtherViewModel.OperationBusGroupCodeLineNo = PermVModel.OperationBusGroupCodeLineNo;
            OtherViewModel.OperationBusGroupNameView = PermVModel.OperationBusGroupNameView;
            OtherViewModel.OperationBusGroupNameEdit = PermVModel.OperationBusGroupNameEdit;
            OtherViewModel.OperationBusGroupNameFilter = PermVModel.OperationBusGroupNameFilter;
            OtherViewModel.OperationBusGroupNameLineNo = PermVModel.OperationBusGroupNameLineNo;
            OtherViewModel.OperationBusDetailsView = PermVModel.OperationBusDetailsView;
            OtherViewModel.OperationBusDetailsLineNo = PermVModel.OperationBusDetailsLineNo;
            OtherViewModel.OperationBusCustomerView = PermVModel.OperationBusCustomerView;
            OtherViewModel.OperationBusCustomerEdit = PermVModel.OperationBusCustomerEdit;
            OtherViewModel.OperationBusCustomerFilter = PermVModel.OperationBusCustomerFilter;
            OtherViewModel.OperationBusCustomerLineNo = PermVModel.OperationBusCustomerLineNo;
            OtherViewModel.OperationBusCostView = PermVModel.OperationBusCostView;
            OtherViewModel.OperationBusCostEdit = PermVModel.OperationBusCostEdit;
            OtherViewModel.OperationBusCostLineNo = PermVModel.OperationBusCostLineNo;
            OtherViewModel.OperationBusEmployeeView = PermVModel.OperationBusEmployeeView;
            OtherViewModel.OperationBusEmployeeEdit = PermVModel.OperationBusEmployeeEdit;
            OtherViewModel.OperationBusEmployeeLineNo = PermVModel.OperationBusEmployeeLineNo;
            OtherViewModel.OperationBusGuideTotalPaidView = PermVModel.OperationBusGuideTotalPaidView;
            OtherViewModel.OperationBusGuideTotalPaidEdit = PermVModel.OperationBusGuideTotalPaidEdit;
            OtherViewModel.OperationBusGuideTotalPaidLineNo = PermVModel.OperationBusGuideTotalPaidLineNo;
            OtherViewModel.OperationBusBusTotalPaidView = PermVModel.OperationBusBusTotalPaidView;
            OtherViewModel.OperationBusBusTotalPaidEdit = PermVModel.OperationBusBusTotalPaidEdit;
            OtherViewModel.OperationBusBusTotalPaidLineNo = PermVModel.OperationBusBusTotalPaidLineNo;
            OtherViewModel.OperationBusGuideDifferenceView = PermVModel.OperationBusGuideDifferenceView;
            OtherViewModel.OperationBusGuideDifferenceEdit = PermVModel.OperationBusGuideDifferenceEdit;
            OtherViewModel.OperationBusGuideDifferenceLineNo = PermVModel.OperationBusGuideDifferenceLineNo;
            OtherViewModel.OperationBusGuideMiscDifferenceView = PermVModel.OperationBusGuideMiscDifferenceView;
            OtherViewModel.OperationBusGuideMiscDifferenceEdit = PermVModel.OperationBusGuideMiscDifferenceEdit;
            OtherViewModel.OperationBusGuideMiscDifferenceLineNo = PermVModel.OperationBusGuideMiscDifferenceLineNo;
            OtherViewModel.OperationBusGuideStepOnDifferenceView = PermVModel.OperationBusGuideStepOnDifferenceView;
            OtherViewModel.OperationBusGuideStepOnDifferenceEdit = PermVModel.OperationBusGuideStepOnDifferenceEdit;
            OtherViewModel.OperationBusGuideStepOnDifferenceLineNo = PermVModel.OperationBusGuideStepOnDifferenceLineNo;
            OtherViewModel.OperationBusBusDifferenceView = PermVModel.OperationBusBusDifferenceView;
            OtherViewModel.OperationBusBusDifferenceEdit = PermVModel.OperationBusBusDifferenceEdit;
            OtherViewModel.OperationBusBusDifferenceLineNo = PermVModel.OperationBusBusDifferenceLineNo;
            OtherViewModel.OperationBusStartView = PermVModel.OperationBusStartView;
            OtherViewModel.OperationBusStartEdit = PermVModel.OperationBusStartEdit;
            OtherViewModel.OperationBusStartLineNo = PermVModel.OperationBusStartLineNo;
            OtherViewModel.OperationBusTimeView = PermVModel.OperationBusTimeView;
            OtherViewModel.OperationBusTimeEdit = PermVModel.OperationBusTimeEdit;
            OtherViewModel.OperationBusTimeLineNo = PermVModel.OperationBusTimeLineNo;
            OtherViewModel.OperationBusServiceDateView = PermVModel.OperationBusServiceDateView;
            OtherViewModel.OperationBusServiceDateEdit = PermVModel.OperationBusServiceDateEdit;
            OtherViewModel.OperationBusServiceDateLineNo = PermVModel.OperationBusServiceDateLineNo;
            OtherViewModel.OperationBusStartCityView = PermVModel.OperationBusStartCityView;
            OtherViewModel.OperationBusStartCityEdit = PermVModel.OperationBusStartCityEdit;
            OtherViewModel.OperationBusStartCityFilter = PermVModel.OperationBusStartCityFilter;
            OtherViewModel.OperationBusStartCityLineNo = PermVModel.OperationBusStartCityLineNo;
            OtherViewModel.OperationBusEndCityView = PermVModel.OperationBusEndCityView;
            OtherViewModel.OperationBusEndCityEdit = PermVModel.OperationBusEndCityEdit;
            OtherViewModel.OperationBusEndCityFilter = PermVModel.OperationBusEndCityFilter;
            OtherViewModel.OperationBusEndCityLineNo = PermVModel.OperationBusEndCityLineNo;
            OtherViewModel.OperationBusBusCountView = PermVModel.OperationBusBusCountView;
            OtherViewModel.OperationBusBusCountEdit = PermVModel.OperationBusBusCountEdit;
            OtherViewModel.OperationBusBusCountLineNo = PermVModel.OperationBusBusCountLineNo;
            OtherViewModel.OperationBusBusSizeView = PermVModel.OperationBusBusSizeView;
            OtherViewModel.OperationBusBusSizeEdit = PermVModel.OperationBusBusSizeEdit;
            OtherViewModel.OperationBusBusSizeLineNo = PermVModel.OperationBusBusSizeLineNo;
            OtherViewModel.OperationBusPaxView = PermVModel.OperationBusPaxView;
            OtherViewModel.OperationBusPaxEdit = PermVModel.OperationBusPaxEdit;
            OtherViewModel.OperationBusPaxLineNo = PermVModel.OperationBusPaxLineNo;
            OtherViewModel.OperationBusEstPaxView = PermVModel.OperationBusEstPaxView;
            OtherViewModel.OperationBusEstPaxEdit = PermVModel.OperationBusEstPaxEdit;
            OtherViewModel.OperationBusEstPaxLineNo = PermVModel.OperationBusEstPaxLineNo;
            OtherViewModel.OperationBusServiceCodeView = PermVModel.OperationBusServiceCodeView;
            OtherViewModel.OperationBusServiceCodeEdit = PermVModel.OperationBusServiceCodeEdit;
            OtherViewModel.OperationBusServiceCodeLineNo = PermVModel.OperationBusServiceCodeLineNo;
            OtherViewModel.OperationBusServiceDetailView = PermVModel.OperationBusServiceDetailView;
            OtherViewModel.OperationBusServiceDetailEdit = PermVModel.OperationBusServiceDetailEdit;
            OtherViewModel.OperationBusServiceDetailLineNo = PermVModel.OperationBusServiceDetailLineNo;
            OtherViewModel.OperationBusSupplierView = PermVModel.OperationBusSupplierView;
            OtherViewModel.OperationBusSupplierEdit = PermVModel.OperationBusSupplierEdit;
            OtherViewModel.OperationBusSupplierFilter = PermVModel.OperationBusSupplierFilter;
            OtherViewModel.OperationBusSupplierLineNo = PermVModel.OperationBusSupplierLineNo;
            OtherViewModel.OperationBusAirportView = PermVModel.OperationBusAirportView;
            OtherViewModel.OperationBusAirportEdit = PermVModel.OperationBusAirportEdit;
            OtherViewModel.OperationBusAirportLineNo = PermVModel.OperationBusAirportLineNo;
            OtherViewModel.OperationBusViewGroupContractView = PermVModel.OperationBusViewGroupContractView;
            OtherViewModel.OperationBusViewGroupContractLineNo = PermVModel.OperationBusViewGroupContractLineNo;
            OtherViewModel.OperationBusStatusView = PermVModel.OperationBusStatusView;
            OtherViewModel.OperationBusStatusEdit = PermVModel.OperationBusStatusEdit;
            OtherViewModel.OperationBusStatusFilter = PermVModel.OperationBusStatusFilter;
            OtherViewModel.OperationBusStatusLineNo = PermVModel.OperationBusStatusLineNo;
            OtherViewModel.OperationBusConfirmationView = PermVModel.OperationBusConfirmationView;
            OtherViewModel.OperationBusConfirmationEdit = PermVModel.OperationBusConfirmationEdit;
            OtherViewModel.OperationBusConfirmationLineNo = PermVModel.OperationBusConfirmationLineNo;
            OtherViewModel.OperationBusGuideView = PermVModel.OperationBusGuideView;
            OtherViewModel.OperationBusGuideEdit = PermVModel.OperationBusGuideEdit;
            OtherViewModel.OperationBusGuideLineNo = PermVModel.OperationBusGuideLineNo;
            OtherViewModel.OperationBusGuideSalaryView = PermVModel.OperationBusGuideSalaryView;
            OtherViewModel.OperationBusGuideSalaryEdit = PermVModel.OperationBusGuideSalaryEdit;
            OtherViewModel.OperationBusGuideSalaryLineNo = PermVModel.OperationBusGuideSalaryLineNo;
            OtherViewModel.OperationBusGuideMiscView = PermVModel.OperationBusGuideMiscView;
            OtherViewModel.OperationBusGuideMiscEdit = PermVModel.OperationBusGuideMiscEdit;
            OtherViewModel.OperationBusGuideMiscLineNo = PermVModel.OperationBusGuideMiscLineNo;
            OtherViewModel.OperationBusGuideStepOnView = PermVModel.OperationBusGuideStepOnView;
            OtherViewModel.OperationBusGuideStepOnEdit = PermVModel.OperationBusGuideStepOnEdit;
            OtherViewModel.OperationBusGuideStepOnLineNo = PermVModel.OperationBusGuideStepOnLineNo;
            OtherViewModel.OperationBusGuideSalaryPaidView = PermVModel.OperationBusGuideSalaryPaidView;
            OtherViewModel.OperationBusGuideSalaryPaidEdit = PermVModel.OperationBusGuideSalaryPaidEdit;
            OtherViewModel.OperationBusGuideSalaryPaidLineNo = PermVModel.OperationBusGuideSalaryPaidLineNo;
            OtherViewModel.OperationBusGuideAdditionalChargesView = PermVModel.OperationBusGuideAdditionalChargesView;
            OtherViewModel.OperationBusGuideAdditionalChargesEdit = PermVModel.OperationBusGuideAdditionalChargesEdit;
            OtherViewModel.OperationBusGuideAdditionalChargesLineNo = PermVModel.OperationBusGuideAdditionalChargesLineNo;
            OtherViewModel.OperationBusGuideSalaryInvoicePaidView = PermVModel.OperationBusGuideSalaryInvoicePaidView;
            OtherViewModel.OperationBusGuideSalaryInvoicePaidEdit = PermVModel.OperationBusGuideSalaryInvoicePaidEdit;
            OtherViewModel.OperationBusGuideSalaryInvoicePaidLineNo = PermVModel.OperationBusGuideSalaryInvoicePaidLineNo;
            OtherViewModel.OperationBusGuideTotalCostView = PermVModel.OperationBusGuideTotalCostView;
            OtherViewModel.OperationBusGuideTotalCostEdit = PermVModel.OperationBusGuideTotalCostEdit;
            OtherViewModel.OperationBusGuideTotalCostLineNo = PermVModel.OperationBusGuideTotalCostLineNo;
            OtherViewModel.OperationBusBusTotalCostView = PermVModel.OperationBusBusTotalCostView;
            OtherViewModel.OperationBusBusTotalCostEdit = PermVModel.OperationBusBusTotalCostEdit;
            OtherViewModel.OperationBusBusTotalCostLineNo = PermVModel.OperationBusBusTotalCostLineNo;
            OtherViewModel.OperationBusPriceView = PermVModel.OperationBusPriceView;
            OtherViewModel.OperationBusPriceEdit = PermVModel.OperationBusPriceEdit;
            OtherViewModel.OperationBusPriceLineNo = PermVModel.OperationBusPriceLineNo;
            OtherViewModel.OperationBusBusCurrencyView = PermVModel.OperationBusBusCurrencyView;
            OtherViewModel.OperationBusBusCurrencyEdit = PermVModel.OperationBusBusCurrencyEdit;
            OtherViewModel.OperationBusBusCurrencyLineNo = PermVModel.OperationBusBusCurrencyLineNo;
            OtherViewModel.OperationBusQuotaBusPriceView = PermVModel.OperationBusQuotaBusPriceView;
            OtherViewModel.OperationBusQuotaBusPriceEdit = PermVModel.OperationBusQuotaBusPriceEdit;
            OtherViewModel.OperationBusQuotaBusPriceLineNo = PermVModel.OperationBusQuotaBusPriceLineNo;
            OtherViewModel.OperationBusQuotaSupplierView = PermVModel.OperationBusQuotaSupplierView;
            OtherViewModel.OperationBusQuotaSupplierEdit = PermVModel.OperationBusQuotaSupplierEdit;
            OtherViewModel.OperationBusQuotaSupplierLineNo = PermVModel.OperationBusQuotaSupplierLineNo;
            OtherViewModel.OperationBusGuideCurrencyView = PermVModel.OperationBusGuideCurrencyView;
            OtherViewModel.OperationBusGuideCurrencyEdit = PermVModel.OperationBusGuideCurrencyEdit;
            OtherViewModel.OperationBusGuideCurrencyLineNo = PermVModel.OperationBusGuideCurrencyLineNo;
            OtherViewModel.OperationBusQuotaGuideSalaryView = PermVModel.OperationBusQuotaGuideSalaryView;
            OtherViewModel.OperationBusQuotaGuideSalaryEdit = PermVModel.OperationBusQuotaGuideSalaryEdit;
            OtherViewModel.OperationBusQuotaGuideSalaryLineNo = PermVModel.OperationBusQuotaGuideSalaryLineNo;
            OtherViewModel.OperationBusQuotaGuideMiscView = PermVModel.OperationBusQuotaGuideMiscView;
            OtherViewModel.OperationBusQuotaGuideMiscEdit = PermVModel.OperationBusQuotaGuideMiscEdit;
            OtherViewModel.OperationBusQuotaGuideMiscLineNo = PermVModel.OperationBusQuotaGuideMiscLineNo;
            OtherViewModel.OperationBusQuotaGuideStepOnView = PermVModel.OperationBusQuotaGuideStepOnView;
            OtherViewModel.OperationBusQuotaGuideStepOnEdit = PermVModel.OperationBusQuotaGuideStepOnEdit;
            OtherViewModel.OperationBusQuotaGuideStepOnLineNo = PermVModel.OperationBusQuotaGuideStepOnLineNo;
            OtherViewModel.OperationBusQuotaGuideView = PermVModel.OperationBusQuotaGuideView;
            OtherViewModel.OperationBusQuotaGuideEdit = PermVModel.OperationBusQuotaGuideEdit;
            OtherViewModel.OperationBusQuotaGuideLineNo = PermVModel.OperationBusQuotaGuideLineNo;
            OtherViewModel.OperationBusBusFirstPaymentView = PermVModel.OperationBusBusFirstPaymentView;
            OtherViewModel.OperationBusBusFirstPaymentEdit = PermVModel.OperationBusBusFirstPaymentEdit;
            OtherViewModel.OperationBusBusFirstPaymentLineNo = PermVModel.OperationBusBusFirstPaymentLineNo;
            OtherViewModel.OperationBusBusFirstPaymentMethodView = PermVModel.OperationBusBusFirstPaymentMethodView;
            OtherViewModel.OperationBusBusFirstPaymentMethodEdit = PermVModel.OperationBusBusFirstPaymentMethodEdit;
            OtherViewModel.OperationBusBusFirstPaymentMethodLineNo = PermVModel.OperationBusBusFirstPaymentMethodLineNo;
            OtherViewModel.OperationBusBusFirstPaymentDetailsView = PermVModel.OperationBusBusFirstPaymentDetailsView;
            OtherViewModel.OperationBusBusFirstPaymentDetailsLineNo = PermVModel.OperationBusBusFirstPaymentDetailsLineNo;
            OtherViewModel.OperationBusBusDateofFirstPaymentView = PermVModel.OperationBusBusDateofFirstPaymentView;
            OtherViewModel.OperationBusBusDateofFirstPaymentEdit = PermVModel.OperationBusBusDateofFirstPaymentEdit;
            OtherViewModel.OperationBusBusDateofFirstPaymentLineNo = PermVModel.OperationBusBusDateofFirstPaymentLineNo;
            OtherViewModel.OperationBusBusSecondPaymentView = PermVModel.OperationBusBusSecondPaymentView;
            OtherViewModel.OperationBusBusSecondPaymentEdit = PermVModel.OperationBusBusSecondPaymentEdit;
            OtherViewModel.OperationBusBusSecondPaymentLineNo = PermVModel.OperationBusBusSecondPaymentLineNo;
            OtherViewModel.OperationBusBusSecondPaymentMethodView = PermVModel.OperationBusBusSecondPaymentMethodView;
            OtherViewModel.OperationBusBusSecondPaymentMethodEdit = PermVModel.OperationBusBusSecondPaymentMethodEdit;
            OtherViewModel.OperationBusBusSecondPaymentMethodLineNo = PermVModel.OperationBusBusSecondPaymentMethodLineNo;
            OtherViewModel.OperationBusBusSecondPaymentDetailsView = PermVModel.OperationBusBusSecondPaymentDetailsView;
            OtherViewModel.OperationBusBusSecondPaymentDetailsLineNo = PermVModel.OperationBusBusSecondPaymentDetailsLineNo;
            OtherViewModel.OperationBusBusDateofSecondPaymentView = PermVModel.OperationBusBusDateofSecondPaymentView;
            OtherViewModel.OperationBusBusDateofSecondPaymentEdit = PermVModel.OperationBusBusDateofSecondPaymentEdit;
            OtherViewModel.OperationBusBusDateofSecondPaymentLineNo = PermVModel.OperationBusBusDateofSecondPaymentLineNo;
            OtherViewModel.OperationBusBusThirdPaymentView = PermVModel.OperationBusBusThirdPaymentView;
            OtherViewModel.OperationBusBusThirdPaymentEdit = PermVModel.OperationBusBusThirdPaymentEdit;
            OtherViewModel.OperationBusBusThirdPaymentLineNo = PermVModel.OperationBusBusThirdPaymentLineNo;
            OtherViewModel.OperationBusBusThirdPaymentMethodView = PermVModel.OperationBusBusThirdPaymentMethodView;
            OtherViewModel.OperationBusBusThirdPaymentMethodEdit = PermVModel.OperationBusBusThirdPaymentMethodEdit;
            OtherViewModel.OperationBusBusThirdPaymentMethodLineNo = PermVModel.OperationBusBusThirdPaymentMethodLineNo;
            OtherViewModel.OperationBusBusThirdPaymentDetailsView = PermVModel.OperationBusBusThirdPaymentDetailsView;
            OtherViewModel.OperationBusBusThirdPaymentDetailsLineNo = PermVModel.OperationBusBusThirdPaymentDetailsLineNo;
            OtherViewModel.OperationBusBusDateofThirdPaymentView = PermVModel.OperationBusBusDateofThirdPaymentView;
            OtherViewModel.OperationBusBusDateofThirdPaymentEdit = PermVModel.OperationBusBusDateofThirdPaymentEdit;
            OtherViewModel.OperationBusBusDateofThirdPaymentLineNo = PermVModel.OperationBusBusDateofThirdPaymentLineNo;
            OtherViewModel.OperationBusGuideFirstPaymentView = PermVModel.OperationBusGuideFirstPaymentView;
            OtherViewModel.OperationBusGuideFirstPaymentEdit = PermVModel.OperationBusGuideFirstPaymentEdit;
            OtherViewModel.OperationBusGuideFirstPaymentLineNo = PermVModel.OperationBusGuideFirstPaymentLineNo;
            OtherViewModel.OperationBusGuideFirstPaymentMethodView = PermVModel.OperationBusGuideFirstPaymentMethodView;
            OtherViewModel.OperationBusGuideFirstPaymentMethodEdit = PermVModel.OperationBusGuideFirstPaymentMethodEdit;
            OtherViewModel.OperationBusGuideFirstPaymentMethodLineNo = PermVModel.OperationBusGuideFirstPaymentMethodLineNo;
            OtherViewModel.OperationBusGuideFirstPaymentDetailsView = PermVModel.OperationBusGuideFirstPaymentDetailsView;
            OtherViewModel.OperationBusGuideFirstPaymentDetailsLineNo = PermVModel.OperationBusGuideFirstPaymentDetailsLineNo;
            OtherViewModel.OperationBusGuideDateofFirstPaymentView = PermVModel.OperationBusGuideDateofFirstPaymentView;
            OtherViewModel.OperationBusGuideDateofFirstPaymentEdit = PermVModel.OperationBusGuideDateofFirstPaymentEdit;
            OtherViewModel.OperationBusGuideDateofFirstPaymentLineNo = PermVModel.OperationBusGuideDateofFirstPaymentLineNo;
            OtherViewModel.OperationBusGuideSecondPaymentEdit = PermVModel.OperationBusGuideSecondPaymentEdit;
            OtherViewModel.OperationBusGuideSecondPaymentView = PermVModel.OperationBusGuideSecondPaymentView;
            OtherViewModel.OperationBusGuideSecondPaymentLineNo = PermVModel.OperationBusGuideSecondPaymentLineNo;
            OtherViewModel.OperationBusGuideSecondPaymentMethodView = PermVModel.OperationBusGuideSecondPaymentMethodView;
            OtherViewModel.OperationBusGuideSecondPaymentMethodEdit = PermVModel.OperationBusGuideSecondPaymentMethodEdit;
            OtherViewModel.OperationBusGuideSecondPaymentMethodLineNo = PermVModel.OperationBusGuideSecondPaymentMethodLineNo;
            OtherViewModel.OperationBusGuideSecondPaymentDetailsView = PermVModel.OperationBusGuideSecondPaymentDetailsView;
            OtherViewModel.OperationBusGuideSecondPaymentDetailsLineNo = PermVModel.OperationBusGuideSecondPaymentDetailsLineNo;
            OtherViewModel.OperationBusGuideDateofSecondPaymentView = PermVModel.OperationBusGuideDateofSecondPaymentView;
            OtherViewModel.OperationBusGuideDateofSecondPaymentEdit = PermVModel.OperationBusGuideDateofSecondPaymentEdit;
            OtherViewModel.OperationBusGuideDateofSecondPaymentLineNo = PermVModel.OperationBusGuideDateofSecondPaymentLineNo;
            OtherViewModel.OperationBusGuideThirdPaymentView = PermVModel.OperationBusGuideThirdPaymentView;
            OtherViewModel.OperationBusGuideThirdPaymentEdit = PermVModel.OperationBusGuideThirdPaymentEdit;
            OtherViewModel.OperationBusGuideThirdPaymentLineNo = PermVModel.OperationBusGuideThirdPaymentLineNo;
            OtherViewModel.OperationBusGuideThirdPaymentMethodView = PermVModel.OperationBusGuideThirdPaymentMethodView;
            OtherViewModel.OperationBusGuideThirdPaymentMethodEdit = PermVModel.OperationBusGuideThirdPaymentMethodEdit;
            OtherViewModel.OperationBusGuideThirdPaymentMethodLineNo = PermVModel.OperationBusGuideThirdPaymentMethodLineNo;
            OtherViewModel.OperationBusGuideThirdPaymentDetailsView = PermVModel.OperationBusGuideThirdPaymentDetailsView;
            OtherViewModel.OperationBusGuideThirdPaymentDetailsLineNo = PermVModel.OperationBusGuideThirdPaymentDetailsLineNo;
            OtherViewModel.OperationBusGuideDateofThirdPaymentView = PermVModel.OperationBusGuideDateofThirdPaymentView;
            OtherViewModel.OperationBusGuideDateofThirdPaymentEdit = PermVModel.OperationBusGuideDateofThirdPaymentEdit;
            OtherViewModel.OperationBusGuideDateofThirdPaymentLineNo = PermVModel.OperationBusGuideDateofThirdPaymentLineNo;
            OtherViewModel.OperationBusNoteView = PermVModel.OperationBusNoteView;
            OtherViewModel.OperationBusNoteEdit = PermVModel.OperationBusNoteEdit;
            OtherViewModel.OperationBusNoteLineNo = PermVModel.OperationBusNoteLineNo;
            // Operation Attraction
            OtherViewModel.OperationAttractionFixedColumnCount = PermVModel.OperationAttractionFixedColumnCount;
            OtherViewModel.OperationAttractionIsGuideInvoiceView = PermVModel.OperationAttractionIsGuideInvoiceView;
            OtherViewModel.OperationAttractionIsGuideInvoiceEdit = PermVModel.OperationAttractionIsGuideInvoiceEdit;
            OtherViewModel.OperationAttractionIsGuideInvoiceLineNo = PermVModel.OperationAttractionIsGuideInvoiceLineNo;
            OtherViewModel.OperationAttractionGuideInvoicePriceView = PermVModel.OperationAttractionGuideInvoicePriceView;
            OtherViewModel.OperationAttractionGuideInvoicePriceEdit = PermVModel.OperationAttractionGuideInvoicePriceEdit;
            OtherViewModel.OperationAttractionGuideInvoicePriceLineNo = PermVModel.OperationAttractionGuideInvoicePriceLineNo;
            OtherViewModel.OperationAttractionIsInvoiceView = PermVModel.OperationAttractionIsInvoiceView;
            OtherViewModel.OperationAttractionIsInvoiceEdit = PermVModel.OperationAttractionIsInvoiceEdit;
            OtherViewModel.OperationAttractionIsInvoiceLineNo = PermVModel.OperationAttractionIsInvoiceLineNo;
            OtherViewModel.OperationAttractionInvoicePriceView = PermVModel.OperationAttractionInvoicePriceView;
            OtherViewModel.OperationAttractionInvoicePriceEdit = PermVModel.OperationAttractionInvoicePriceEdit;
            OtherViewModel.OperationAttractionInvoicePriceLineNo = PermVModel.OperationAttractionInvoicePriceLineNo;
            OtherViewModel.OperationAttractionOptionalView = PermVModel.OperationAttractionOptionalView;
            OtherViewModel.OperationAttractionOptionalLineNo = PermVModel.OperationAttractionOptionalLineNo;
            OtherViewModel.OperationAttractionGroupCodeView = PermVModel.OperationAttractionGroupCodeView;
            OtherViewModel.OperationAttractionGroupCodeEdit = PermVModel.OperationAttractionGroupCodeEdit;
            OtherViewModel.OperationAttractionGroupCodeFilter = PermVModel.OperationAttractionGroupCodeFilter;
            OtherViewModel.OperationAttractionGroupCodeLineNo = PermVModel.OperationAttractionGroupCodeLineNo;
            OtherViewModel.OperationAttractionGroupNameView = PermVModel.OperationAttractionGroupNameView;
            OtherViewModel.OperationAttractionGroupNameEdit = PermVModel.OperationAttractionGroupNameEdit;
            OtherViewModel.OperationAttractionGroupNameFilter = PermVModel.OperationAttractionGroupNameFilter;
            OtherViewModel.OperationAttractionGroupNameLineNo = PermVModel.OperationAttractionGroupNameLineNo;
            OtherViewModel.OperationAttractionDetailsView = PermVModel.OperationAttractionDetailsView;
            OtherViewModel.OperationAttractionDetailsLineNo = PermVModel.OperationAttractionDetailsLineNo;
            OtherViewModel.OperationAttractionCustomerView = PermVModel.OperationAttractionCustomerView;
            OtherViewModel.OperationAttractionCustomerEdit = PermVModel.OperationAttractionCustomerEdit;
            OtherViewModel.OperationAttractionCustomerFilter = PermVModel.OperationAttractionCustomerFilter;
            OtherViewModel.OperationAttractionCustomerLineNo = PermVModel.OperationAttractionCustomerLineNo;
            OtherViewModel.OperationAttractionPaxView = PermVModel.OperationAttractionPaxView;
            OtherViewModel.OperationAttractionPaxEdit = PermVModel.OperationAttractionPaxEdit;
            OtherViewModel.OperationAttractionPaxLineNo = PermVModel.OperationAttractionPaxLineNo;
            OtherViewModel.OperationAttractionEmployeeView = PermVModel.OperationAttractionEmployeeView;
            OtherViewModel.OperationAttractionEmployeeEdit = PermVModel.OperationAttractionEmployeeEdit;
            OtherViewModel.OperationAttractionEmployeeLineNo = PermVModel.OperationAttractionEmployeeLineNo;
            OtherViewModel.OperationAttractionEstPaxView = PermVModel.OperationAttractionEstPaxView;
            OtherViewModel.OperationAttractionEstPaxEdit = PermVModel.OperationAttractionEstPaxEdit;
            OtherViewModel.OperationAttractionEstPaxLineNo = PermVModel.OperationAttractionEstPaxLineNo;
            OtherViewModel.OperationAttractionSupplierView = PermVModel.OperationAttractionSupplierView;
            OtherViewModel.OperationAttractionSupplierEdit = PermVModel.OperationAttractionSupplierEdit;
            OtherViewModel.OperationAttractionSupplierFilter = PermVModel.OperationAttractionSupplierFilter;
            OtherViewModel.OperationAttractionSupplierLineNo = PermVModel.OperationAttractionSupplierLineNo;
            OtherViewModel.OperationAttractionDifferenceView = PermVModel.OperationAttractionDifferenceView;
            OtherViewModel.OperationAttractionDifferenceEdit = PermVModel.OperationAttractionDifferenceEdit;
            OtherViewModel.OperationAttractionDifferenceLineNo = PermVModel.OperationAttractionDifferenceLineNo;
            OtherViewModel.OperationAttractionDoneView = PermVModel.OperationAttractionDoneView;
            OtherViewModel.OperationAttractionDoneEdit = PermVModel.OperationAttractionDoneEdit;
            OtherViewModel.OperationAttractionDoneLineNo = PermVModel.OperationAttractionDoneLineNo;
            OtherViewModel.OperationAttractionDateView = PermVModel.OperationAttractionDateView;
            OtherViewModel.OperationAttractionDateEdit = PermVModel.OperationAttractionDateEdit;
            OtherViewModel.OperationAttractionDateLineNo = PermVModel.OperationAttractionDateLineNo;
            OtherViewModel.OperationAttractionTimeView = PermVModel.OperationAttractionTimeView;
            OtherViewModel.OperationAttractionTimeEdit = PermVModel.OperationAttractionTimeEdit;
            OtherViewModel.OperationAttractionTimeLineNo = PermVModel.OperationAttractionTimeLineNo;
            OtherViewModel.OperationAttractionCategoryView = PermVModel.OperationAttractionCategoryView;
            OtherViewModel.OperationAttractionCategoryEdit = PermVModel.OperationAttractionCategoryEdit;
            OtherViewModel.OperationAttractionCategoryFilter = PermVModel.OperationAttractionCategoryFilter;
            OtherViewModel.OperationAttractionCategoryLineNo = PermVModel.OperationAttractionCategoryLineNo;
            OtherViewModel.OperationAttractionTypeView = PermVModel.OperationAttractionTypeView;
            OtherViewModel.OperationAttractionTypeEdit = PermVModel.OperationAttractionTypeEdit;
            OtherViewModel.OperationAttractionTypeFilter = PermVModel.OperationAttractionTypeFilter;
            OtherViewModel.OperationAttractionTypeLineNo = PermVModel.OperationAttractionTypeLineNo;
            OtherViewModel.OperationAttractionFirstPaymentView = PermVModel.OperationAttractionFirstPaymentView;
            OtherViewModel.OperationAttractionFirstPaymentEdit = PermVModel.OperationAttractionFirstPaymentEdit;
            OtherViewModel.OperationAttractionFirstPaymentLineNo = PermVModel.OperationAttractionFirstPaymentLineNo;
            OtherViewModel.OperationAttractionFirstPaymentMethodView = PermVModel.OperationAttractionFirstPaymentMethodView;
            OtherViewModel.OperationAttractionFirstPaymentMethodEdit = PermVModel.OperationAttractionFirstPaymentMethodEdit;
            OtherViewModel.OperationAttractionFirstPaymentMethodLineNo = PermVModel.OperationAttractionFirstPaymentMethodLineNo;
            OtherViewModel.OperationAttractionFirstPaymentDetailsView = PermVModel.OperationAttractionFirstPaymentDetailsView;
            OtherViewModel.OperationAttractionFirstPaymentDetailsLineNo = PermVModel.OperationAttractionFirstPaymentDetailsLineNo;
            OtherViewModel.OperationAttractionDateofFirstPaymentView = PermVModel.OperationAttractionDateofFirstPaymentView;
            OtherViewModel.OperationAttractionDateofFirstPaymentEdit = PermVModel.OperationAttractionDateofFirstPaymentEdit;
            OtherViewModel.OperationAttractionDateofFirstPaymentLineNo = PermVModel.OperationAttractionDateofFirstPaymentLineNo;
            OtherViewModel.OperationAttractionSecondPaymentView = PermVModel.OperationAttractionSecondPaymentView;
            OtherViewModel.OperationAttractionSecondPaymentEdit = PermVModel.OperationAttractionSecondPaymentEdit;
            OtherViewModel.OperationAttractionSecondPaymentLineNo = PermVModel.OperationAttractionSecondPaymentLineNo;
            OtherViewModel.OperationAttractionSecondPaymentMethodView = PermVModel.OperationAttractionSecondPaymentMethodView;
            OtherViewModel.OperationAttractionSecondPaymentMethodEdit = PermVModel.OperationAttractionSecondPaymentMethodEdit;
            OtherViewModel.OperationAttractionSecondPaymentMethodLineNo = PermVModel.OperationAttractionSecondPaymentMethodLineNo;
            OtherViewModel.OperationAttractionSecondPaymentDetailsView = PermVModel.OperationAttractionSecondPaymentDetailsView;
            OtherViewModel.OperationAttractionSecondPaymentDetailsLineNo = PermVModel.OperationAttractionSecondPaymentDetailsLineNo;
            OtherViewModel.OperationAttractionDateofSecondPaymentView = PermVModel.OperationAttractionDateofSecondPaymentView;
            OtherViewModel.OperationAttractionDateofSecondPaymentEdit = PermVModel.OperationAttractionDateofSecondPaymentEdit;
            OtherViewModel.OperationAttractionDateofSecondPaymentLineNo = PermVModel.OperationAttractionDateofSecondPaymentLineNo;
            OtherViewModel.OperationAttractionThirdPaymentView = PermVModel.OperationAttractionThirdPaymentView;
            OtherViewModel.OperationAttractionThirdPaymentEdit = PermVModel.OperationAttractionThirdPaymentEdit;
            OtherViewModel.OperationAttractionThirdPaymentLineNo = PermVModel.OperationAttractionThirdPaymentLineNo;
            OtherViewModel.OperationAttractionThirdPaymentMethodView = PermVModel.OperationAttractionThirdPaymentMethodView;
            OtherViewModel.OperationAttractionThirdPaymentMethodEdit = PermVModel.OperationAttractionThirdPaymentMethodEdit;
            OtherViewModel.OperationAttractionThirdPaymentMethodLineNo = PermVModel.OperationAttractionThirdPaymentMethodLineNo;
            OtherViewModel.OperationAttractionThirdPaymentDetailsView = PermVModel.OperationAttractionThirdPaymentDetailsView;
            OtherViewModel.OperationAttractionThirdPaymentDetailsLineNo = PermVModel.OperationAttractionThirdPaymentDetailsLineNo;
            OtherViewModel.OperationAttractionDateofThirdPaymentView = PermVModel.OperationAttractionDateofThirdPaymentView;
            OtherViewModel.OperationAttractionDateofThirdPaymentEdit = PermVModel.OperationAttractionDateofThirdPaymentEdit;
            OtherViewModel.OperationAttractionDateofThirdPaymentLineNo = PermVModel.OperationAttractionDateofThirdPaymentLineNo;
            OtherViewModel.OperationAttractionDepositView = PermVModel.OperationAttractionDepositView;
            OtherViewModel.OperationAttractionDepositEdit = PermVModel.OperationAttractionDepositEdit;
            OtherViewModel.OperationAttractionDepositLineNo = PermVModel.OperationAttractionDepositLineNo;
            OtherViewModel.OperationAttractionDepositDateView = PermVModel.OperationAttractionDepositDateView;
            OtherViewModel.OperationAttractionDepositDateEdit = PermVModel.OperationAttractionDepositDateEdit;
            OtherViewModel.OperationAttractionDepositDateLineNo = PermVModel.OperationAttractionDepositDateLineNo;
            OtherViewModel.OperationAttractionContactView = PermVModel.OperationAttractionContactView;
            OtherViewModel.OperationAttractionContactEdit = PermVModel.OperationAttractionContactEdit;
            OtherViewModel.OperationAttractionContactLineNo = PermVModel.OperationAttractionContactLineNo;
            OtherViewModel.OperationAttractionPhoneView = PermVModel.OperationAttractionPhoneView;
            OtherViewModel.OperationAttractionPhoneEdit = PermVModel.OperationAttractionPhoneEdit;
            OtherViewModel.OperationAttractionPhoneLineNo = PermVModel.OperationAttractionPhoneLineNo;
            OtherViewModel.OperationAttractionEmailView = PermVModel.OperationAttractionEmailView;
            OtherViewModel.OperationAttractionEmailEdit = PermVModel.OperationAttractionEmailEdit;
            OtherViewModel.OperationAttractionEmailLineNo = PermVModel.OperationAttractionEmailLineNo;
            OtherViewModel.OperationAttractionViewGroupContractView = PermVModel.OperationAttractionViewGroupContractView;
            OtherViewModel.OperationAttractionViewGroupContractLineNo = PermVModel.OperationAttractionViewGroupContractLineNo;
            OtherViewModel.OperationAttractionAddressView = PermVModel.OperationAttractionAddressView;
            OtherViewModel.OperationAttractionAddressEdit = PermVModel.OperationAttractionAddressEdit;
            OtherViewModel.OperationAttractionAddressLineNo = PermVModel.OperationAttractionAddressLineNo;
            OtherViewModel.OperationAttractionCityView = PermVModel.OperationAttractionCityView;
            OtherViewModel.OperationAttractionCityEdit = PermVModel.OperationAttractionCityEdit;
            OtherViewModel.OperationAttractionCityFilter = PermVModel.OperationAttractionCityFilter;
            OtherViewModel.OperationAttractionCityLineNo = PermVModel.OperationAttractionCityLineNo;
            OtherViewModel.OperationAttractionStateView = PermVModel.OperationAttractionStateView;
            OtherViewModel.OperationAttractionStateEdit = PermVModel.OperationAttractionStateEdit;
            OtherViewModel.OperationAttractionStateLineNo = PermVModel.OperationAttractionStateLineNo;
            OtherViewModel.OperationAttractionStatusView = PermVModel.OperationAttractionStatusView;
            OtherViewModel.OperationAttractionStatusEdit = PermVModel.OperationAttractionStatusEdit;
            OtherViewModel.OperationAttractionStatusFilter = PermVModel.OperationAttractionStatusFilter;
            OtherViewModel.OperationAttractionStatusLineNo = PermVModel.OperationAttractionStatusLineNo;
            OtherViewModel.OperationAttractionCurrencyView = PermVModel.OperationAttractionCurrencyView;
            OtherViewModel.OperationAttractionCurrencyEdit = PermVModel.OperationAttractionCurrencyEdit;
            OtherViewModel.OperationAttractionCurrencyLineNo = PermVModel.OperationAttractionCurrencyLineNo;
            OtherViewModel.OperationAttractionQuotaPriceView = PermVModel.OperationAttractionQuotaPriceView;
            OtherViewModel.OperationAttractionQuotaPriceEdit = PermVModel.OperationAttractionQuotaPriceEdit;
            OtherViewModel.OperationAttractionQuotaPriceLineNo = PermVModel.OperationAttractionQuotaPriceLineNo;
            OtherViewModel.OperationAttractionQuotaSupplierView = PermVModel.OperationAttractionQuotaSupplierView;
            OtherViewModel.OperationAttractionQuotaSupplierEdit = PermVModel.OperationAttractionQuotaSupplierEdit;
            OtherViewModel.OperationAttractionQuotaSupplierLineNo = PermVModel.OperationAttractionQuotaSupplierLineNo;
            OtherViewModel.OperationAttractionTotalCostView = PermVModel.OperationAttractionTotalCostView;
            OtherViewModel.OperationAttractionTotalCostEdit = PermVModel.OperationAttractionTotalCostEdit;
            OtherViewModel.OperationAttractionTotalCostLineNo = PermVModel.OperationAttractionTotalCostLineNo;
            OtherViewModel.OperationAttractionTotalAmountPaidView = PermVModel.OperationAttractionTotalAmountPaidView;
            OtherViewModel.OperationAttractionTotalAmountPaidEdit = PermVModel.OperationAttractionTotalAmountPaidEdit;
            OtherViewModel.OperationAttractionTotalAmountPaidLineNo = PermVModel.OperationAttractionTotalAmountPaidLineNo;
            OtherViewModel.OperationAttractionUnitPriceView = PermVModel.OperationAttractionUnitPriceView;
            OtherViewModel.OperationAttractionUnitPriceEdit = PermVModel.OperationAttractionUnitPriceEdit;
            OtherViewModel.OperationAttractionUnitPriceLineNo = PermVModel.OperationAttractionUnitPriceLineNo;
            OtherViewModel.OperationAttractionMenuView = PermVModel.OperationAttractionMenuView;
            OtherViewModel.OperationAttractionMenuEdit = PermVModel.OperationAttractionMenuEdit;
            OtherViewModel.OperationAttractionMenuLineNo = PermVModel.OperationAttractionMenuLineNo;
            OtherViewModel.OperationAttractionFinalPaymentView = PermVModel.OperationAttractionFinalPaymentView;
            OtherViewModel.OperationAttractionFinalPaymentEdit = PermVModel.OperationAttractionFinalPaymentEdit;
            OtherViewModel.OperationAttractionFinalPaymentLineNo = PermVModel.OperationAttractionFinalPaymentLineNo;
            OtherViewModel.OperationAttractionDepositAmountPaidView = PermVModel.OperationAttractionDepositAmountPaidView;
            OtherViewModel.OperationAttractionDepositAmountPaidEdit = PermVModel.OperationAttractionDepositAmountPaidEdit;
            OtherViewModel.OperationAttractionDepositAmountPaidLineNo = PermVModel.OperationAttractionDepositAmountPaidLineNo;
            OtherViewModel.OperationAttractionCreditCardChargeAmountView = PermVModel.OperationAttractionCreditCardChargeAmountView;
            OtherViewModel.OperationAttractionCreditCardChargeAmountEdit = PermVModel.OperationAttractionCreditCardChargeAmountEdit;
            OtherViewModel.OperationAttractionCreditCardChargeAmountLineNo = PermVModel.OperationAttractionCreditCardChargeAmountLineNo;
            OtherViewModel.OperationAttractionCreditCardMemoView = PermVModel.OperationAttractionCreditCardMemoView;
            OtherViewModel.OperationAttractionCreditCardMemoEdit = PermVModel.OperationAttractionCreditCardMemoEdit;
            OtherViewModel.OperationAttractionCreditCardMemoLineNo = PermVModel.OperationAttractionCreditCardMemoLineNo;
            OtherViewModel.OperationAttractionOutstandingAmountView = PermVModel.OperationAttractionOutstandingAmountView;
            OtherViewModel.OperationAttractionOutstandingAmountEdit = PermVModel.OperationAttractionOutstandingAmountEdit;
            OtherViewModel.OperationAttractionOutstandingAmountLineNo = PermVModel.OperationAttractionOutstandingAmountLineNo;
            OtherViewModel.OperationAttractionDifferenceTotalPaidTotalChargedView = PermVModel.OperationAttractionDifferenceTotalPaidTotalChargedView;
            OtherViewModel.OperationAttractionDifferenceTotalPaidTotalChargedEdit = PermVModel.OperationAttractionDifferenceTotalPaidTotalChargedEdit;
            OtherViewModel.OperationAttractionDifferenceTotalPaidTotalChargedLineNo = PermVModel.OperationAttractionDifferenceTotalPaidTotalChargedLineNo;
            // Operation Misc
            OtherViewModel.OperationMiscFixedColumnCount = PermVModel.OperationMiscFixedColumnCount;
            OtherViewModel.OperationMiscPlaneView = PermVModel.OperationMiscPlaneView;
            OtherViewModel.OperationMiscPlaneEdit = PermVModel.OperationMiscPlaneEdit;
            OtherViewModel.OperationMiscPlaneLineNo = PermVModel.OperationMiscPlaneLineNo;
            OtherViewModel.OperationMiscIsCompView = PermVModel.OperationMiscIsCompView;
            OtherViewModel.OperationMiscIsCompEdit = PermVModel.OperationMiscIsCompEdit;
            OtherViewModel.OperationMiscIsCompLineNo = PermVModel.OperationMiscIsCompLineNo;
            OtherViewModel.OperationMiscGroupCodeView = PermVModel.OperationMiscGroupCodeView;
            OtherViewModel.OperationMiscGroupCodeEdit = PermVModel.OperationMiscGroupCodeEdit;
            OtherViewModel.OperationMiscGroupCodeFilter = PermVModel.OperationMiscGroupCodeFilter;
            OtherViewModel.OperationMiscGroupCodeLineNo = PermVModel.OperationMiscGroupCodeLineNo;
            OtherViewModel.OperationMiscGroupNameView = PermVModel.OperationMiscGroupNameView;
            OtherViewModel.OperationMiscGroupNameEdit = PermVModel.OperationMiscGroupNameEdit;
            OtherViewModel.OperationMiscGroupNameFilter = PermVModel.OperationMiscGroupNameFilter;
            OtherViewModel.OperationMiscGroupNameLineNo = PermVModel.OperationMiscGroupNameLineNo;
            OtherViewModel.OperationMiscDetailsView = PermVModel.OperationMiscDetailsView;
            OtherViewModel.OperationMiscDetailsLineNo = PermVModel.OperationMiscDetailsLineNo;
            OtherViewModel.OperationMiscCustomerView = PermVModel.OperationMiscCustomerView;
            OtherViewModel.OperationMiscCustomerEdit = PermVModel.OperationMiscCustomerEdit;
            OtherViewModel.OperationMiscCustomerFilter = PermVModel.OperationMiscCustomerFilter;
            OtherViewModel.OperationMiscCustomerLineNo = PermVModel.OperationMiscCustomerLineNo;
            OtherViewModel.OperationMiscEmployeeView = PermVModel.OperationMiscEmployeeView;
            OtherViewModel.OperationMiscEmployeeEdit = PermVModel.OperationMiscEmployeeEdit;
            OtherViewModel.OperationMiscEmployeeLineNo = PermVModel.OperationMiscEmployeeLineNo;
            OtherViewModel.OperationMiscPaxView = PermVModel.OperationMiscPaxView;
            OtherViewModel.OperationMiscPaxEdit = PermVModel.OperationMiscPaxEdit;
            OtherViewModel.OperationMiscPaxLineNo = PermVModel.OperationMiscPaxLineNo;
            OtherViewModel.OperationMiscEstPaxView = PermVModel.OperationMiscEstPaxView;
            OtherViewModel.OperationMiscEstPaxEdit = PermVModel.OperationMiscEstPaxEdit;
            OtherViewModel.OperationMiscEstPaxLineNo = PermVModel.OperationMiscEstPaxLineNo;
            OtherViewModel.OperationMiscSupplierView = PermVModel.OperationMiscSupplierView;
            OtherViewModel.OperationMiscSupplierEdit = PermVModel.OperationMiscSupplierEdit;
            OtherViewModel.OperationMiscSupplierFilter = PermVModel.OperationMiscSupplierFilter;
            OtherViewModel.OperationMiscSupplierLineNo = PermVModel.OperationMiscSupplierLineNo;
            OtherViewModel.OperationMiscDateView = PermVModel.OperationMiscDateView;
            OtherViewModel.OperationMiscDateEdit = PermVModel.OperationMiscDateEdit;
            OtherViewModel.OperationMiscDateLineNo = PermVModel.OperationMiscDateLineNo;
            OtherViewModel.OperationMiscTimeView = PermVModel.OperationMiscTimeView;
            OtherViewModel.OperationMiscTimeEdit = PermVModel.OperationMiscTimeEdit;
            OtherViewModel.OperationMiscTimeLineNo = PermVModel.OperationMiscTimeLineNo;
            OtherViewModel.OperationMiscServiceDetailView = PermVModel.OperationMiscServiceDetailView;
            OtherViewModel.OperationMiscServiceDetailEdit = PermVModel.OperationMiscServiceDetailEdit;
            OtherViewModel.OperationMiscServiceDetailLineNo = PermVModel.OperationMiscServiceDetailLineNo;
            OtherViewModel.OperationMiscContactView = PermVModel.OperationMiscContactView;
            OtherViewModel.OperationMiscContactEdit = PermVModel.OperationMiscContactEdit;
            OtherViewModel.OperationMiscContactLineNo = PermVModel.OperationMiscContactLineNo;
            OtherViewModel.OperationMiscPhoneView = PermVModel.OperationMiscPhoneView;
            OtherViewModel.OperationMiscPhoneEdit = PermVModel.OperationMiscPhoneEdit;
            OtherViewModel.OperationMiscPhoneLineNo = PermVModel.OperationMiscPhoneLineNo;
            OtherViewModel.OperationMiscEmailView = PermVModel.OperationMiscEmailView;
            OtherViewModel.OperationMiscEmailEdit = PermVModel.OperationMiscEmailEdit;
            OtherViewModel.OperationMiscEmailLineNo = PermVModel.OperationMiscEmailLineNo;
            OtherViewModel.OperationMiscViewGroupContractView = PermVModel.OperationMiscViewGroupContractView;
            OtherViewModel.OperationMiscViewGroupContractLineNo = PermVModel.OperationMiscViewGroupContractLineNo;
            OtherViewModel.OperationMiscAddressView = PermVModel.OperationMiscAddressView;
            OtherViewModel.OperationMiscAddressEdit = PermVModel.OperationMiscAddressEdit;
            OtherViewModel.OperationMiscAddressLineNo = PermVModel.OperationMiscAddressLineNo;
            OtherViewModel.OperationMiscCityView = PermVModel.OperationMiscCityView;
            OtherViewModel.OperationMiscCityEdit = PermVModel.OperationMiscCityEdit;
            OtherViewModel.OperationMiscCityFilter = PermVModel.OperationMiscCityFilter;
            OtherViewModel.OperationMiscCityLineNo = PermVModel.OperationMiscCityLineNo;
            OtherViewModel.OperationMiscStatusView = PermVModel.OperationMiscStatusView;
            OtherViewModel.OperationMiscStatusEdit = PermVModel.OperationMiscStatusEdit;
            OtherViewModel.OperationMiscStatusFilter = PermVModel.OperationMiscStatusFilter;
            OtherViewModel.OperationMiscStatusLineNo = PermVModel.OperationMiscStatusLineNo;
            OtherViewModel.OperationMiscUnitPriceView = PermVModel.OperationMiscUnitPriceView;
            OtherViewModel.OperationMiscUnitPriceEdit = PermVModel.OperationMiscUnitPriceEdit;
            OtherViewModel.OperationMiscUnitPriceLineNo = PermVModel.OperationMiscUnitPriceLineNo;
            OtherViewModel.OperationMiscUnitPricePGView = PermVModel.OperationMiscUnitPricePGView;
            OtherViewModel.OperationMiscUnitPricePGEdit = PermVModel.OperationMiscUnitPricePGEdit;
            OtherViewModel.OperationMiscUnitPricePGLineNo = PermVModel.OperationMiscUnitPricePGLineNo;
            OtherViewModel.OperationMiscDiffView = PermVModel.OperationMiscDiffView;
            OtherViewModel.OperationMiscDiffEdit = PermVModel.OperationMiscDiffEdit;
            OtherViewModel.OperationMiscDiffLineNo = PermVModel.OperationMiscDiffLineNo;
            OtherViewModel.OperationMiscPGDiffView = PermVModel.OperationMiscPGDiffView;
            OtherViewModel.OperationMiscPGDiffEdit = PermVModel.OperationMiscPGDiffEdit;
            OtherViewModel.OperationMiscPGDiffLineNo = PermVModel.OperationMiscPGDiffLineNo;
            OtherViewModel.OperationMiscTotalAmountPaidView = PermVModel.OperationMiscTotalAmountPaidView;
            OtherViewModel.OperationMiscTotalAmountPaidEdit = PermVModel.OperationMiscTotalAmountPaidEdit;
            OtherViewModel.OperationMiscTotalAmountPaidLineNo = PermVModel.OperationMiscTotalAmountPaidLineNo;
            OtherViewModel.OperationMiscTotalAmountCostView = PermVModel.OperationMiscTotalAmountCostView;
            OtherViewModel.OperationMiscTotalAmountCostEdit = PermVModel.OperationMiscTotalAmountCostEdit;
            OtherViewModel.OperationMiscTotalAmountCostLineNo = PermVModel.OperationMiscTotalAmountCostLineNo;
            OtherViewModel.OperationMiscTotalOutAmountView = PermVModel.OperationMiscTotalOutAmountView;
            OtherViewModel.OperationMiscTotalOutAmountEdit = PermVModel.OperationMiscTotalOutAmountEdit;
            OtherViewModel.OperationMiscTotalOutAmountLineNo = PermVModel.OperationMiscTotalOutAmountLineNo;
            OtherViewModel.OperationMiscCurrencyView = PermVModel.OperationMiscCurrencyView;
            OtherViewModel.OperationMiscCurrencyEdit = PermVModel.OperationMiscCurrencyEdit;
            OtherViewModel.OperationMiscCurrencyLineNo = PermVModel.OperationMiscCurrencyLineNo;
            OtherViewModel.OperationMiscFirstPaymentView = PermVModel.OperationMiscFirstPaymentView;
            OtherViewModel.OperationMiscFirstPaymentEdit = PermVModel.OperationMiscFirstPaymentEdit;
            OtherViewModel.OperationMiscFirstPaymentLineNo = PermVModel.OperationMiscFirstPaymentLineNo;
            OtherViewModel.OperationMiscFirstPaymentMethodView = PermVModel.OperationMiscFirstPaymentMethodView;
            OtherViewModel.OperationMiscFirstPaymentMethodEdit = PermVModel.OperationMiscFirstPaymentMethodEdit;
            OtherViewModel.OperationMiscFirstPaymentMethodLineNo = PermVModel.OperationMiscFirstPaymentMethodLineNo;
            OtherViewModel.OperationMiscFirstPaymentDetailsView = PermVModel.OperationMiscFirstPaymentDetailsView;
            OtherViewModel.OperationMiscFirstPaymentDetailsLineNo = PermVModel.OperationMiscFirstPaymentDetailsLineNo;
            OtherViewModel.OperationMiscDateofFirstPaymentView = PermVModel.OperationMiscDateofFirstPaymentView;
            OtherViewModel.OperationMiscDateofFirstPaymentEdit = PermVModel.OperationMiscDateofFirstPaymentEdit;
            OtherViewModel.OperationMiscDateofFirstPaymentLineNo = PermVModel.OperationMiscDateofFirstPaymentLineNo;
            OtherViewModel.OperationMiscSecondPaymentView = PermVModel.OperationMiscSecondPaymentView;
            OtherViewModel.OperationMiscSecondPaymentEdit = PermVModel.OperationMiscSecondPaymentEdit;
            OtherViewModel.OperationMiscSecondPaymentLineNo = PermVModel.OperationMiscSecondPaymentLineNo;
            OtherViewModel.OperationMiscSecondPaymentMethodView = PermVModel.OperationMiscSecondPaymentMethodView;
            OtherViewModel.OperationMiscSecondPaymentMethodEdit = PermVModel.OperationMiscSecondPaymentMethodEdit;
            OtherViewModel.OperationMiscSecondPaymentMethodLineNo = PermVModel.OperationMiscSecondPaymentMethodLineNo;
            OtherViewModel.OperationMiscSecondPaymentDetailsView = PermVModel.OperationMiscSecondPaymentDetailsView;
            OtherViewModel.OperationMiscSecondPaymentDetailsLineNo = PermVModel.OperationMiscSecondPaymentDetailsLineNo;
            OtherViewModel.OperationMiscDateofSecondPaymentView = PermVModel.OperationMiscDateofSecondPaymentView;
            OtherViewModel.OperationMiscDateofSecondPaymentEdit = PermVModel.OperationMiscDateofSecondPaymentEdit;
            OtherViewModel.OperationMiscDateofSecondPaymentLineNo = PermVModel.OperationMiscDateofSecondPaymentLineNo;
            OtherViewModel.OperationMiscThirdPaymentView = PermVModel.OperationMiscThirdPaymentView;
            OtherViewModel.OperationMiscThirdPaymentEdit = PermVModel.OperationMiscThirdPaymentEdit;
            OtherViewModel.OperationMiscThirdPaymentLineNo = PermVModel.OperationMiscThirdPaymentLineNo;
            OtherViewModel.OperationMiscThirdPaymentMethodView = PermVModel.OperationMiscThirdPaymentMethodView;
            OtherViewModel.OperationMiscThirdPaymentMethodEdit = PermVModel.OperationMiscThirdPaymentMethodEdit;
            OtherViewModel.OperationMiscThirdPaymentMethodLineNo = PermVModel.OperationMiscThirdPaymentMethodLineNo;
            OtherViewModel.OperationMiscThirdPaymentDetailsView = PermVModel.OperationMiscThirdPaymentDetailsView;
            OtherViewModel.OperationMiscThirdPaymentDetailsLineNo = PermVModel.OperationMiscThirdPaymentDetailsLineNo;
            OtherViewModel.OperationMiscDateofThirdPaymentView = PermVModel.OperationMiscDateofThirdPaymentView;
            OtherViewModel.OperationMiscDateofThirdPaymentEdit = PermVModel.OperationMiscDateofThirdPaymentEdit;
            OtherViewModel.OperationMiscDateofThirdPaymentLineNo = PermVModel.OperationMiscDateofThirdPaymentLineNo;
            OtherViewModel.OperationMiscQuotaPriceView = PermVModel.OperationMiscQuotaPriceView;
            OtherViewModel.OperationMiscQuotaPriceEdit = PermVModel.OperationMiscQuotaPriceEdit;
            OtherViewModel.OperationMiscQuotaPriceLineNo = PermVModel.OperationMiscQuotaPriceLineNo;
            OtherViewModel.OperationMiscQuotaPerGroupPriceView = PermVModel.OperationMiscQuotaPerGroupPriceView;
            OtherViewModel.OperationMiscQuotaPerGroupPriceEdit = PermVModel.OperationMiscQuotaPerGroupPriceEdit;
            OtherViewModel.OperationMiscQuotaPerGroupPriceLineNo = PermVModel.OperationMiscQuotaPerGroupPriceLineNo;
            OtherViewModel.OperationMiscQuotaSupplierView = PermVModel.OperationMiscQuotaSupplierView;
            OtherViewModel.OperationMiscQuotaSupplierEdit = PermVModel.OperationMiscQuotaSupplierEdit;
            OtherViewModel.OperationMiscQuotaSupplierLineNo = PermVModel.OperationMiscQuotaSupplierLineNo;
            OtherViewModel.OperationMiscNotesView = PermVModel.OperationMiscNotesView;
            OtherViewModel.OperationMiscNotesEdit = PermVModel.OperationMiscNotesEdit;
            OtherViewModel.OperationMiscNotesLineNo = PermVModel.OperationMiscNotesLineNo;
            // Operation Tech Prog
            OtherViewModel.OperationTechProgFixedColumnCount = PermVModel.OperationTechProgFixedColumnCount;
            OtherViewModel.OperationTechProgDayView = PermVModel.OperationTechProgDayView;
            OtherViewModel.OperationTechProgDayEdit = PermVModel.OperationTechProgDayEdit;
            OtherViewModel.OperationTechProgDayLineNo = PermVModel.OperationTechProgDayLineNo;
            OtherViewModel.OperationTechProgPrintView = PermVModel.OperationTechProgPrintView;
            OtherViewModel.OperationTechProgPrintEdit = PermVModel.OperationTechProgPrintEdit;
            OtherViewModel.OperationTechProgPrintLineNo = PermVModel.OperationTechProgPrintLineNo;
            OtherViewModel.OperationTechProgDateView = PermVModel.OperationTechProgDateView;
            OtherViewModel.OperationTechProgDateEdit = PermVModel.OperationTechProgDateEdit;
            OtherViewModel.OperationTechProgDateLineNo = PermVModel.OperationTechProgDateLineNo;
            OtherViewModel.OperationTechProgTimeView = PermVModel.OperationTechProgTimeView;
            OtherViewModel.OperationTechProgTimeEdit = PermVModel.OperationTechProgTimeEdit;
            OtherViewModel.OperationTechProgTimeLineNo = PermVModel.OperationTechProgTimeLineNo;
            OtherViewModel.OperationTechProgDetailView = PermVModel.OperationTechProgDetailView;
            OtherViewModel.OperationTechProgDetailEdit = PermVModel.OperationTechProgDetailEdit;
            OtherViewModel.OperationTechProgDetailLineNo = PermVModel.OperationTechProgDetailLineNo;
            OtherViewModel.OperationTechProgDescriptionView = PermVModel.OperationTechProgDescriptionView;
            OtherViewModel.OperationTechProgDescriptionEdit = PermVModel.OperationTechProgDescriptionEdit;
            OtherViewModel.OperationTechProgDescriptionLineNo = PermVModel.OperationTechProgDescriptionLineNo;
            OtherViewModel.OperationTechProgViaView = PermVModel.OperationTechProgViaView;
            OtherViewModel.OperationTechProgViaEdit = PermVModel.OperationTechProgViaEdit;
            OtherViewModel.OperationTechProgViaLineNo = PermVModel.OperationTechProgViaLineNo;
            OtherViewModel.OperationTechProgTypeView = PermVModel.OperationTechProgTypeView;
            OtherViewModel.OperationTechProgTypeEdit = PermVModel.OperationTechProgTypeEdit;
            OtherViewModel.OperationTechProgTypeFilter = PermVModel.OperationTechProgTypeFilter;
            OtherViewModel.OperationTechProgTypeLineNo = PermVModel.OperationTechProgTypeLineNo;
            OtherViewModel.OperationTechProgVendorNameView = PermVModel.OperationTechProgVendorNameView;
            OtherViewModel.OperationTechProgVendorNameEdit = PermVModel.OperationTechProgVendorNameEdit;
            OtherViewModel.OperationTechProgVendorNameLineNo = PermVModel.OperationTechProgVendorNameLineNo;
            OtherViewModel.OperationTechProgVendorAddressView = PermVModel.OperationTechProgVendorAddressView;
            OtherViewModel.OperationTechProgVendorAddressEdit = PermVModel.OperationTechProgVendorAddressEdit;
            OtherViewModel.OperationTechProgVendorAddressLineNo = PermVModel.OperationTechProgVendorAddressLineNo;
            OtherViewModel.OperationTechProgVendorEmailView = PermVModel.OperationTechProgVendorEmailView;
            OtherViewModel.OperationTechProgVendorEmailEdit = PermVModel.OperationTechProgVendorEmailEdit;
            OtherViewModel.OperationTechProgVendorEmailLineNo = PermVModel.OperationTechProgVendorEmailLineNo;
            OtherViewModel.OperationTechProgGuideNameView = PermVModel.OperationTechProgGuideNameView;
            OtherViewModel.OperationTechProgGuideNameEdit = PermVModel.OperationTechProgGuideNameEdit;
            OtherViewModel.OperationTechProgGuideNameLineNo = PermVModel.OperationTechProgGuideNameLineNo;
            OtherViewModel.OperationTechProgGuidePhoneView = PermVModel.OperationTechProgGuidePhoneView;
            OtherViewModel.OperationTechProgGuidePhoneEdit = PermVModel.OperationTechProgGuidePhoneEdit;
            OtherViewModel.OperationTechProgGuidePhoneLineNo = PermVModel.OperationTechProgGuidePhoneLineNo;
            OtherViewModel.OperationTechProgCityView = PermVModel.OperationTechProgCityView;
            OtherViewModel.OperationTechProgCityEdit = PermVModel.OperationTechProgCityEdit;
            OtherViewModel.OperationTechProgCityLineNo = PermVModel.OperationTechProgCityLineNo;
            OtherViewModel.OperationTechProgAreaView = PermVModel.OperationTechProgAreaView;
            OtherViewModel.OperationTechProgAreaEdit = PermVModel.OperationTechProgAreaEdit;
            OtherViewModel.OperationTechProgAreaLineNo = PermVModel.OperationTechProgAreaLineNo;
            // Operation P/L
            OtherViewModel.OperationPLHotelView = PermVModel.OperationPLHotelView;
            OtherViewModel.OperationPLHotelGrpProfitView = PermVModel.OperationPLHotelGrpProfitView;
            OtherViewModel.OperationPLHotelTotalCostView = PermVModel.OperationPLHotelTotalCostView;
            OtherViewModel.OperationPLHotelTotalPaidView = PermVModel.OperationPLHotelTotalPaidView;
            OtherViewModel.OperationPLHotelTotalOutPayView = PermVModel.OperationPLHotelTotalOutPayView;
            OtherViewModel.OperationPLHotelOutComAmtView = PermVModel.OperationPLHotelOutComAmtView;
            OtherViewModel.OperationPLHotelTotalComAmtView = PermVModel.OperationPLHotelTotalComAmtView;
            OtherViewModel.OperationPLHotelTotalComRecView = PermVModel.OperationPLHotelTotalComRecView;
            OtherViewModel.OperationPLHotelTotalRoomDiffView = PermVModel.OperationPLHotelTotalRoomDiffView;
            OtherViewModel.OperationPLRoomView = PermVModel.OperationPLRoomView;
            OtherViewModel.OperationPLRoomPaxView = PermVModel.OperationPLRoomPaxView;
            OtherViewModel.OperationPLRoomRoomsView = PermVModel.OperationPLRoomRoomsView;
            OtherViewModel.OperationPLRoomSGLView = PermVModel.OperationPLRoomSGLView;
            OtherViewModel.OperationPLRoomDBLView = PermVModel.OperationPLRoomDBLView;
            OtherViewModel.OperationPLRoomTWNView = PermVModel.OperationPLRoomTWNView;
            OtherViewModel.OperationPLRoomTRPLView = PermVModel.OperationPLRoomTRPLView;
            OtherViewModel.OperationPLRoomQUDView = PermVModel.OperationPLRoomQUDView;
            OtherViewModel.OperationPLRoomDriverView = PermVModel.OperationPLRoomDriverView;
            OtherViewModel.OperationPLRoomGuideView = PermVModel.OperationPLRoomGuideView;
            OtherViewModel.OperationPLAttractionView = PermVModel.OperationPLAttractionView;
            OtherViewModel.OperationPLAttractionTotalPaidView = PermVModel.OperationPLAttractionTotalPaidView;
            OtherViewModel.OperationPLAttractionTotalDiffView = PermVModel.OperationPLAttractionTotalDiffView;
            OtherViewModel.OperationPLAttractionTotalOutAmtView = PermVModel.OperationPLAttractionTotalOutAmtView;
            OtherViewModel.OperationPLAttractionTotalDiffPaidChargedView = PermVModel.OperationPLAttractionTotalDiffPaidChargedView;
            OtherViewModel.OperationPLAttractionTotalCostView = PermVModel.OperationPLAttractionTotalCostView;
            OtherViewModel.OperationPLInvoiceView = PermVModel.OperationPLInvoiceView;
            OtherViewModel.OperationPLInvoiceTotalDebitView = PermVModel.OperationPLInvoiceTotalDebitView;
            OtherViewModel.OperationPLInvoiceTotalCreditView = PermVModel.OperationPLInvoiceTotalCreditView;
            OtherViewModel.OperationPLInvoiceTotalDepositView = PermVModel.OperationPLInvoiceTotalDepositView;
            OtherViewModel.OperationPLInvoiceAmountDueView = PermVModel.OperationPLInvoiceAmountDueView;
            OtherViewModel.OperationPLInvoiceTotalRefundView = PermVModel.OperationPLInvoiceTotalRefundView;
            OtherViewModel.OperationPLBusView = PermVModel.OperationPLBusView;
            OtherViewModel.OperationPLBusTotalBusDiffView = PermVModel.OperationPLBusTotalBusDiffView;
            OtherViewModel.OperationPLBusTotalGuideDiffView = PermVModel.OperationPLBusTotalGuideDiffView;
            OtherViewModel.OperationPLBusTotalBusPaidView = PermVModel.OperationPLBusTotalBusPaidView;
            OtherViewModel.OperationPLBusTotalGuidePaidView = PermVModel.OperationPLBusTotalGuidePaidView;
            OtherViewModel.OperationPLBusTotalBusCostView = PermVModel.OperationPLBusTotalBusCostView;
            OtherViewModel.OperationPLBusTotalGuideCostView = PermVModel.OperationPLBusTotalGuideCostView;
            OtherViewModel.OperationPLBusTotalGuideMiscDiffView = PermVModel.OperationPLBusTotalGuideMiscDiffView;
            OtherViewModel.OperationPLBusTotalGuideStepOnView = PermVModel.OperationPLBusTotalGuideStepOnView;
            OtherViewModel.OperationPLMiscView = PermVModel.OperationPLMiscView;
            OtherViewModel.OperationPLMiscTotalPaidView = PermVModel.OperationPLMiscTotalPaidView;
            OtherViewModel.OperationPLMiscTotalCostView = PermVModel.OperationPLMiscTotalCostView;
            OtherViewModel.OperationPLMiscTotalOutAmtView = PermVModel.OperationPLMiscTotalOutAmtView;
            OtherViewModel.OperationPLMiscTotalDiffView = PermVModel.OperationPLMiscTotalDiffView;
            OtherViewModel.OperationPLMiscTotalPGDiffView = PermVModel.OperationPLMiscTotalPGDiffView;
            OtherViewModel.OperationPLMiscTotalCompView = PermVModel.OperationPLMiscTotalCompView;
            OtherViewModel.OperationPLMiscTotalPGCompView = PermVModel.OperationPLMiscTotalPGCompView;
            // Operation Group Check List
            OtherViewModel.OperationGroupCheckListFixedColumnCount = PermVModel.OperationGroupCheckListFixedColumnCount;
            OtherViewModel.OperationGroupCheckListGroupNameView = PermVModel.OperationGroupCheckListGroupNameView;
            OtherViewModel.OperationGroupCheckListGroupNameEdit = PermVModel.OperationGroupCheckListGroupNameEdit;
            OtherViewModel.OperationGroupCheckListGroupNameFilter = PermVModel.OperationGroupCheckListGroupNameFilter;
            OtherViewModel.OperationGroupCheckListGroupNameLineNo = PermVModel.OperationGroupCheckListGroupNameLineNo;
            OtherViewModel.OperationGroupCheckListGroupCodeView = PermVModel.OperationGroupCheckListGroupCodeView;
            OtherViewModel.OperationGroupCheckListGroupCodeEdit = PermVModel.OperationGroupCheckListGroupCodeEdit;
            OtherViewModel.OperationGroupCheckListGroupCodeFilter = PermVModel.OperationGroupCheckListGroupCodeFilter;
            OtherViewModel.OperationGroupCheckListGroupCodeLineNo = PermVModel.OperationGroupCheckListGroupCodeLineNo;
            OtherViewModel.OperationGroupCheckListPaxView = PermVModel.OperationGroupCheckListPaxView;
            OtherViewModel.OperationGroupCheckListPaxEdit = PermVModel.OperationGroupCheckListPaxEdit;
            OtherViewModel.OperationGroupCheckListPaxLineNo = PermVModel.OperationGroupCheckListPaxLineNo;
            OtherViewModel.OperationGroupCheckListIsGirView = PermVModel.OperationGroupCheckListIsGirView;
            OtherViewModel.OperationGroupCheckListIsGirEdit = PermVModel.OperationGroupCheckListIsGirEdit;
            OtherViewModel.OperationGroupCheckListIsGirLineNo = PermVModel.OperationGroupCheckListIsGirLineNo;
            OtherViewModel.OperationGroupCheckListCustomerView = PermVModel.OperationGroupCheckListCustomerView;
            OtherViewModel.OperationGroupCheckListCustomerEdit = PermVModel.OperationGroupCheckListCustomerEdit;
            OtherViewModel.OperationGroupCheckListCustomerFilter = PermVModel.OperationGroupCheckListCustomerFilter;
            OtherViewModel.OperationGroupCheckListCustomerLineNo = PermVModel.OperationGroupCheckListCustomerLineNo;
            OtherViewModel.OperationGroupCheckListHotelStatusView = PermVModel.OperationGroupCheckListHotelStatusView;
            OtherViewModel.OperationGroupCheckListHotelStatusEdit = PermVModel.OperationGroupCheckListHotelStatusEdit;
            OtherViewModel.OperationGroupCheckListHotelStatusLineNo = PermVModel.OperationGroupCheckListHotelStatusLineNo;
            OtherViewModel.OperationGroupCheckListMonthOfArrivalView = PermVModel.OperationGroupCheckListMonthOfArrivalView;
            OtherViewModel.OperationGroupCheckListMonthOfArrivalEdit = PermVModel.OperationGroupCheckListMonthOfArrivalEdit;
            OtherViewModel.OperationGroupCheckListMonthOfArrivalLineNo = PermVModel.OperationGroupCheckListMonthOfArrivalLineNo;
            OtherViewModel.OperationGroupCheckListArrivalDateView = PermVModel.OperationGroupCheckListArrivalDateView;
            OtherViewModel.OperationGroupCheckListArrivalDateEdit = PermVModel.OperationGroupCheckListArrivalDateEdit;
            OtherViewModel.OperationGroupCheckListArrivalDateLineNo = PermVModel.OperationGroupCheckListArrivalDateLineNo;
            OtherViewModel.OperationGroupCheckListArrivalCityView = PermVModel.OperationGroupCheckListArrivalCityView;
            OtherViewModel.OperationGroupCheckListArrivalCityEdit = PermVModel.OperationGroupCheckListArrivalCityEdit;
            OtherViewModel.OperationGroupCheckListArrivalCityLineNo = PermVModel.OperationGroupCheckListArrivalCityLineNo;
            OtherViewModel.OperationGroupCheckListDepartureDateView = PermVModel.OperationGroupCheckListDepartureDateView;
            OtherViewModel.OperationGroupCheckListDepartureDateEdit = PermVModel.OperationGroupCheckListDepartureDateEdit;
            OtherViewModel.OperationGroupCheckListDepartureDateLineNo = PermVModel.OperationGroupCheckListDepartureDateLineNo;
            OtherViewModel.OperationGroupCheckListDepartureCityView = PermVModel.OperationGroupCheckListDepartureCityView;
            OtherViewModel.OperationGroupCheckListDepartureCityEdit = PermVModel.OperationGroupCheckListDepartureCityEdit;
            OtherViewModel.OperationGroupCheckListDepartureCityLineNo = PermVModel.OperationGroupCheckListDepartureCityLineNo;
            OtherViewModel.OperationGroupCheckListHotelNotesView = PermVModel.OperationGroupCheckListHotelNotesView;
            OtherViewModel.OperationGroupCheckListHotelNotesEdit = PermVModel.OperationGroupCheckListHotelNotesEdit;
            OtherViewModel.OperationGroupCheckListHotelNotesLineNo = PermVModel.OperationGroupCheckListHotelNotesLineNo;
            OtherViewModel.OperationGroupCheckListBusGuideNotesView = PermVModel.OperationGroupCheckListBusGuideNotesView;
            OtherViewModel.OperationGroupCheckListBusGuideNotesEdit = PermVModel.OperationGroupCheckListBusGuideNotesEdit;
            OtherViewModel.OperationGroupCheckListBusGuideNotesLineNo = PermVModel.OperationGroupCheckListBusGuideNotesLineNo;
        }
        private UserAllPermissionsViewModel InitUserProfile(UserAllPermissionsBData data)
        {
            UserAllPermissionsViewModel Permissions = new UserAllPermissionsViewModel();
            if (data == null)
            {
                Permissions.MenuView = false;
                return Permissions;
            }
            var Operation = (from perm in data.Tools where perm.ToolID == 2 select perm.ToolTabs).SingleOrDefault();
            if (Operation == null)
            {
                // Opertaion Hotel
                Permissions.OperationHotelFixedColumnCount = 0;
                Permissions.OperationHotelGroupCodeView = false;
                Permissions.OperationHotelGroupCodeEdit = false;
                Permissions.OperationHotelGroupCodeFilter = false;
                Permissions.OperationHotelCustomerView = false;
                Permissions.OperationHotelCustomerEdit = false;
                Permissions.OperationHotelCustomerFilter = false;
                Permissions.OperationHotelDetailsView = false;
                Permissions.OperationHotelGroupStatusView = false;
                Permissions.OperationHotelGroupStatusEdit = false;
                Permissions.OperationHotelGroupStatusFilter = false;
                Permissions.OperationHotelGroupNameView = false;
                Permissions.OperationHotelGroupNameEdit = false;
                Permissions.OperationHotelGroupNameFilter = false;
                Permissions.OperationHotelArrivalDateView = false;
                Permissions.OperationHotelArrivalDateEdit = false;
                Permissions.OperationHotelDepartureDateView = false;
                Permissions.OperationHotelDepartureDateEdit = false;
                Permissions.OperationHotelRoomCountView = false;
                Permissions.OperationHotelRoomCountEdit = false;
                Permissions.OperationHotelEmployeeView = false;
                Permissions.OperationHotelEmployeeEdit = false;
                Permissions.OperationHotelVendorStatusView = false;
                Permissions.OperationHotelVendorStatusEdit = false;
                Permissions.OperationHotelVendorStatusFilter = false;
                Permissions.OperationHotelVendorNameView = false;
                Permissions.OperationHotelVendorNameEdit = false;
                Permissions.OperationHotelVendorNameFilter = false;
                Permissions.OperationHotelCityView = false;
                Permissions.OperationHotelCityEdit = false;
                Permissions.OperationHotelCityFilter = false;
                Permissions.OperationHotelAddressView = false;
                Permissions.OperationHotelAddressEdit = false;
                Permissions.OperationHotelPhoneView = false;
                Permissions.OperationHotelPhoneEdit = false;
                Permissions.OperationHotelNameOfContactPersonView = false;
                Permissions.OperationHotelNameOfContactPersonEdit = false;
                Permissions.OperationHotelEmailView = false;
                Permissions.OperationHotelEmailEdit = false;
                Permissions.OperationHotelViewContractView = false;
                Permissions.OperationHotelViewGroupContractView = false;
                Permissions.OperationHotelPaxView = false;
                Permissions.OperationHotelPaxEdit = false;
                Permissions.OperationHotelArrivalCityView = false;
                Permissions.OperationHotelArrivalCityEdit = false;
                Permissions.OperationHotelArrivalCityFilter = false;
                Permissions.OperationHotelFileCompletationDaysView = false;
                Permissions.OperationHotelFileCompletationDaysEdit = false;
                Permissions.OperationHotelNightsView = false;
                Permissions.OperationHotelNightsEdit = false;
                Permissions.OperationHotelTotalCostView = false;
                Permissions.OperationHotelTotalCostEdit = false;
                Permissions.OperationHotelBreakDownTotalView = false;
                Permissions.OperationHotelBreakDownTotalEdit = false;
                Permissions.OperationHotelOutstandingBalanceView = false;
                Permissions.OperationHotelOutstandingBalanceEdit = false;
                Permissions.OperationHotelComAmountView = false;
                Permissions.OperationHotelComAmountEdit = false;
                Permissions.OperationHotelComDifferenceView = false;
                Permissions.OperationHotelComDifferenceEdit = false;
                Permissions.OperationHotelCurrencyView = false;
                Permissions.OperationHotelCurrencyEdit = false;
                Permissions.OperationHotelTotalInvoiceView = false;
                Permissions.OperationHotelTotalInvoiceEdit = false;
                Permissions.OperationHotelTotalPaidView = false;
                Permissions.OperationHotelTotalPaidEdit = false;
                Permissions.OperationHotelFirstPaymentView = false;
                Permissions.OperationHotelFirstPaymentEdit = false;
                Permissions.OperationHotelFirstPaymentMethodView = false;
                Permissions.OperationHotelFirstPaymentMethodEdit = false;
                Permissions.OperationHotelPayFirstDetailsView = false;
                Permissions.OperationHotelDateofFirstPaymentView = false;
                Permissions.OperationHotelDateofFirstPaymentEdit = false;
                Permissions.OperationHotelSecondPaymentView = false;
                Permissions.OperationHotelSecondPaymentEdit = false;
                Permissions.OperationHotelSecondPaymentMethodView = false;
                Permissions.OperationHotelSecondPaymentMethodEdit = false;
                Permissions.OperationHotelPaySecondDetailsView = false;
                Permissions.OperationHotelDateofSecondPaymentView = false;
                Permissions.OperationHotelDateofSecondPaymentEdit = false;
                Permissions.OperationHotelThirdPaymentView = false;
                Permissions.OperationHotelThirdPaymentEdit = false;
                Permissions.OperationHotelThirdPaymentMethodView = false;
                Permissions.OperationHotelThirdPaymentMethodEdit = false;
                Permissions.OperationHotelPayThirdDetailsView = false;
                Permissions.OperationHotelDateofThirdPaymentView = false;
                Permissions.OperationHotelDateofThirdPaymentEdit = false;
                Permissions.OperationHotelRefundReceivedfromHotelView = false;
                Permissions.OperationHotelRefundReceivedfromHotelEdit = false;
                Permissions.OperationHotelTotalChargedView = false;
                Permissions.OperationHotelTotalChargedEdit = false;
                Permissions.OperationHotelAuthDiffView = false;
                Permissions.OperationHotelAuthDiffEdit = false;
                Permissions.OperationHotelAccountingMemoView = false;
                Permissions.OperationHotelAccountingMemoEdit = false;
                Permissions.OperationHotelCommissionStatusView = false;
                Permissions.OperationHotelCommissionStatusEdit = false;
                Permissions.OperationHotelComPercentView = false;
                Permissions.OperationHotelComPercentEdit = false;
                Permissions.OperationHotelComReceivedView = false;
                Permissions.OperationHotelComReceivedEdit = false;
                Permissions.OperationHotelComDateReceivedView = false;
                Permissions.OperationHotelComDateReceivedEdit = false;
                Permissions.OperationHotelCheckNumberView = false;
                Permissions.OperationHotelCheckNumberEdit = false;
                Permissions.OperationHotelCheckNumberAmountView = false;
                Permissions.OperationHotelCheckNumberAmountEdit = false;
                Permissions.OperationHotelSGLView = false;
                Permissions.OperationHotelSGLEdit = false;
                Permissions.OperationHotelSGLAmountView = false;
                Permissions.OperationHotelSGLAmountEdit = false;
                Permissions.OperationHotelDBLView = false;
                Permissions.OperationHotelDBLEdit = false;
                Permissions.OperationHotelDBLAmountView = false;
                Permissions.OperationHotelDBLAmountEdit = false;
                Permissions.OperationHotelTWNView = false;
                Permissions.OperationHotelTWNEdit = false;
                Permissions.OperationHotelTWNAmountView = false;
                Permissions.OperationHotelTWNAmountEdit = false;
                Permissions.OperationHotelTRPLView = false;
                Permissions.OperationHotelTRPLEdit = false;
                Permissions.OperationHotelTRPLAmountView = false;
                Permissions.OperationHotelTRPLAmountEdit = false;
                Permissions.OperationHotelQUDView = false;
                Permissions.OperationHotelQUDEdit = false;
                Permissions.OperationHotelQUDAmountView = false;
                Permissions.OperationHotelQUDAmountEdit = false;
                Permissions.OperationHotelGuideView = false;
                Permissions.OperationHotelGuideEdit = false;
                Permissions.OperationHotelGuideAmountView = false;
                Permissions.OperationHotelGuideAmountEdit = false;
                Permissions.OperationHotelDriverView = false;
                Permissions.OperationHotelDriverEdit = false;
                Permissions.OperationHotelDriverAmountView = false;
                Permissions.OperationHotelDriverAmountEdit = false;
                Permissions.OperationHotelTaxView = false;
                Permissions.OperationHotelTaxEdit = false;
                Permissions.OperationHotelOccTaxView = false;
                Permissions.OperationHotelOccTaxEdit = false;
                Permissions.OperationHotelCBFView = false;
                Permissions.OperationHotelCBFEdit = false;
                Permissions.OperationHotelABFView = false;
                Permissions.OperationHotelABFEdit = false;
                Permissions.OperationHotelBagView = false;
                Permissions.OperationHotelBagEdit = false;
                Permissions.OperationHotelCompView = false;
                Permissions.OperationHotelCompEdit = false;
                Permissions.OperationHotelExtraCostView = false;
                Permissions.OperationHotelExtraCostEdit = false;
                Permissions.OperationHotelXLTDateView = false;
                Permissions.OperationHotelXLTDateEdit = false;
                Permissions.OperationHotelDateFileReceivedView = false;
                Permissions.OperationHotelDateFileReceivedEdit = false;
                Permissions.OperationHotelDateFileCompletedView = false;
                Permissions.OperationHotelDateFileCompletedEdit = false;
                Permissions.OperationHotelDayofArrivalView = false;
                Permissions.OperationHotelDayofArrivalEdit = false;
                Permissions.OperationHotelDayofArrivalFilter = false;
                Permissions.OperationHotelMonthofArrivalView = false;
                Permissions.OperationHotelMonthofArrivalEdit = false;
                Permissions.OperationHotelMonthofArrivalFilter = false;
                Permissions.OperationHotelClientBookingCodeView = false;
                Permissions.OperationHotelClientBookingCodeEdit = false;
                Permissions.OperationHotelCheckInView = false;
                Permissions.OperationHotelCheckInEdit = false;
                Permissions.OperationHotelCheckOutView = false;
                Permissions.OperationHotelCheckOutEdit = false;
                Permissions.OperationHotelEstimatedNumberofRoomsView = false;
                Permissions.OperationHotelEstimatedNumberofRoomsEdit = false;
                Permissions.OperationHotelEstimatedNumberofRoomsFilter = false;
                Permissions.OperationHotelEstimatedNumberofPaxView = false;
                Permissions.OperationHotelEstimatedNumberofPaxEdit = false;
                Permissions.OperationHotelQuotedRoomView = false;
                Permissions.OperationHotelQuotedRoomEdit = false;
                Permissions.OperationHotelQuotedTaxView = false;
                Permissions.OperationHotelQuotedTaxEdit = false;
                Permissions.OperationHotelQuotedOccTaxView = false;
                Permissions.OperationHotelQuotedOccTaxEdit = false;
                Permissions.OperationHotelQuotedBrkView = false;
                Permissions.OperationHotelQuotedBrkEdit = false;
                Permissions.OperationHotelQuotedLgView = false;
                Permissions.OperationHotelQuotedLgEdit = false;
                Permissions.OperationHotelQuotedNightView = false;
                Permissions.OperationHotelQuotedNightEdit = false;
                Permissions.OperationHotelQuotedNoteView = false;
                Permissions.OperationHotelQuotedNoteEdit = false;
                Permissions.OperationHotelConfView = false;
                Permissions.OperationHotelConfEdit = false;
                Permissions.OperationHotelQuotedVendorNameView = false;
                Permissions.OperationHotelQuotedVendorNameEdit = false;
                Permissions.OperationHotelTechView = false;
                Permissions.OperationHotelTechEdit = false;
                Permissions.OperationHotelNotesView = false;
                Permissions.OperationHotelNotesEdit = false;
                Permissions.OperationHotelLunchView = false;
                Permissions.OperationHotelLunchEdit = false;
                Permissions.OperationHotelDinnerView = false;
                Permissions.OperationHotelDinnerEdit = false;
                // Operation Room
                Permissions.OperationRoomFixedColumnCount = 0;
                Permissions.OperationRoomGroupNameView = false;
                Permissions.OperationRoomGroupNameEdit = false;
                Permissions.OperationRoomGroupCodeView = false;
                Permissions.OperationRoomGroupCodeEdit = false;
                Permissions.OperationRoomPaxinRoomView = false;
                Permissions.OperationRoomPaxinRoomEdit = false;
                Permissions.OperationRoomDeleteView = false;
                Permissions.OperationRoomPaxView = false;
                Permissions.OperationRoomPaxEdit = false;
                Permissions.OperationRoomRoomTypeView = false;
                Permissions.OperationRoomRoomTypeEdit = false;
                Permissions.OperationRoomRoomTypeFilter = false;
                Permissions.OperationRoomTitleView = false;
                Permissions.OperationRoomTitleEdit = false;
                Permissions.OperationRoomTitleFilter = false;
                Permissions.OperationRoomNamesView = false;
                Permissions.OperationRoomNamesEdit = false;
                Permissions.OperationRoomNotesView = false;
                Permissions.OperationRoomNotesEdit = false;
                Permissions.OperationRoomCustomerView = false;
                Permissions.OperationRoomCustomerEdit = false;
                Permissions.OperationRoomCustomerFilter = false;
                Permissions.OperationRoomFBoardView = false;
                Permissions.OperationRoomFBoardEdit = false;
                Permissions.OperationRoomFBoardCountView = false;
                Permissions.OperationRoomFBoardCountEdit = false;
                // Operation Bus
                Permissions.OperationBusFixedColumnCount = 0;
                Permissions.OperationBusIsInvoiceView = false;
                Permissions.OperationBusIsInvoiceEdit = false;
                Permissions.OperationBusInvoicePriceView = false;
                Permissions.OperationBusInvoicePriceEdit = false;
                Permissions.OperationBusGroupCodeView = false;
                Permissions.OperationBusGroupCodeEdit = false;
                Permissions.OperationBusGroupCodeFilter = false;
                Permissions.OperationBusGroupNameView = false;
                Permissions.OperationBusGroupNameEdit = false;
                Permissions.OperationBusGroupNameFilter = false;
                Permissions.OperationBusDetailsView = false;
                Permissions.OperationBusCustomerView = false;
                Permissions.OperationBusCustomerEdit = false;
                Permissions.OperationBusCustomerFilter = false;
                Permissions.OperationBusCostView = false;
                Permissions.OperationBusCostEdit = false;
                Permissions.OperationBusEmployeeView = false;
                Permissions.OperationBusEmployeeEdit = false;
                Permissions.OperationBusGuideTotalPaidView = false;
                Permissions.OperationBusGuideTotalPaidEdit = false;
                Permissions.OperationBusBusTotalPaidView = false;
                Permissions.OperationBusBusTotalPaidEdit = false;
                Permissions.OperationBusGuideDifferenceView = false;
                Permissions.OperationBusGuideDifferenceEdit = false;
                Permissions.OperationBusGuideMiscDifferenceView = false;
                Permissions.OperationBusGuideMiscDifferenceEdit = false;
                Permissions.OperationBusGuideStepOnDifferenceView = false;
                Permissions.OperationBusGuideStepOnDifferenceEdit = false;
                Permissions.OperationBusBusDifferenceView = false;
                Permissions.OperationBusBusDifferenceEdit = false;
                Permissions.OperationBusStartView = false;
                Permissions.OperationBusStartEdit = false;
                Permissions.OperationBusTimeView = false;
                Permissions.OperationBusTimeEdit = false;
                Permissions.OperationBusServiceDateView = false;
                Permissions.OperationBusServiceDateEdit = false;
                Permissions.OperationBusStartCityView = false;
                Permissions.OperationBusStartCityEdit = false;
                Permissions.OperationBusStartCityFilter = false;
                Permissions.OperationBusEndCityView = false;
                Permissions.OperationBusEndCityEdit = false;
                Permissions.OperationBusEndCityFilter = false;
                Permissions.OperationBusBusCountView = false;
                Permissions.OperationBusBusCountEdit = false;
                Permissions.OperationBusBusSizeView = false;
                Permissions.OperationBusBusSizeEdit = false;
                Permissions.OperationBusPaxView = false;
                Permissions.OperationBusPaxEdit = false;
                Permissions.OperationBusEstPaxView = false;
                Permissions.OperationBusEstPaxEdit = false;
                Permissions.OperationBusServiceCodeView = false;
                Permissions.OperationBusServiceCodeEdit = false;
                Permissions.OperationBusServiceDetailView = false;
                Permissions.OperationBusServiceDetailEdit = false;
                Permissions.OperationBusSupplierView = false;
                Permissions.OperationBusSupplierEdit = false;
                Permissions.OperationBusSupplierFilter = false;
                Permissions.OperationBusAirportView = false;
                Permissions.OperationBusAirportEdit = false;
                Permissions.OperationBusViewGroupContractView = false;
                Permissions.OperationBusStatusView = false;
                Permissions.OperationBusStatusEdit = false;
                Permissions.OperationBusStatusFilter = false;
                Permissions.OperationBusConfirmationView = false;
                Permissions.OperationBusConfirmationEdit = false;
                Permissions.OperationBusGuideView = false;
                Permissions.OperationBusGuideEdit = false;
                Permissions.OperationBusGuideSalaryView = false;
                Permissions.OperationBusGuideSalaryEdit = false;
                Permissions.OperationBusGuideMiscView = false;
                Permissions.OperationBusGuideMiscEdit = false;
                Permissions.OperationBusGuideStepOnView = false;
                Permissions.OperationBusGuideStepOnEdit = false;
                Permissions.OperationBusGuideSalaryPaidView = false;
                Permissions.OperationBusGuideSalaryPaidEdit = false;
                Permissions.OperationBusGuideAdditionalChargesView = false;
                Permissions.OperationBusGuideAdditionalChargesEdit = false;
                Permissions.OperationBusGuideSalaryInvoicePaidView = false;
                Permissions.OperationBusGuideSalaryInvoicePaidEdit = false;
                Permissions.OperationBusGuideTotalCostView = false;
                Permissions.OperationBusGuideTotalCostEdit = false;
                Permissions.OperationBusBusTotalCostView = false;
                Permissions.OperationBusBusTotalCostEdit = false;
                Permissions.OperationBusPriceView = false;
                Permissions.OperationBusPriceEdit = false;
                Permissions.OperationBusBusCurrencyView = false;
                Permissions.OperationBusBusCurrencyEdit = false;
                Permissions.OperationBusQuotaBusPriceView = false;
                Permissions.OperationBusQuotaBusPriceEdit = false;
                Permissions.OperationBusQuotaSupplierView = false;
                Permissions.OperationBusQuotaSupplierEdit = false;
                Permissions.OperationBusGuideCurrencyView = false;
                Permissions.OperationBusGuideCurrencyEdit = false;
                Permissions.OperationBusQuotaGuideSalaryView = false;
                Permissions.OperationBusQuotaGuideSalaryEdit = false;
                Permissions.OperationBusQuotaGuideMiscView = false;
                Permissions.OperationBusQuotaGuideMiscEdit = false;
                Permissions.OperationBusQuotaGuideStepOnView = false;
                Permissions.OperationBusQuotaGuideStepOnEdit = false;
                Permissions.OperationBusQuotaGuideView = false;
                Permissions.OperationBusQuotaGuideEdit = false;
                Permissions.OperationBusBusFirstPaymentView = false;
                Permissions.OperationBusBusFirstPaymentEdit = false;
                Permissions.OperationBusBusFirstPaymentMethodView = false;
                Permissions.OperationBusBusFirstPaymentMethodEdit = false;
                Permissions.OperationBusBusFirstPaymentDetailsView = false;
                Permissions.OperationBusBusDateofFirstPaymentView = false;
                Permissions.OperationBusBusDateofFirstPaymentEdit = false;
                Permissions.OperationBusBusSecondPaymentView = false;
                Permissions.OperationBusBusSecondPaymentEdit = false;
                Permissions.OperationBusBusSecondPaymentMethodView = false;
                Permissions.OperationBusBusSecondPaymentMethodEdit = false;
                Permissions.OperationBusBusSecondPaymentDetailsView = false;
                Permissions.OperationBusBusDateofSecondPaymentView = false;
                Permissions.OperationBusBusDateofSecondPaymentEdit = false;
                Permissions.OperationBusBusThirdPaymentView = false;
                Permissions.OperationBusBusThirdPaymentEdit = false;
                Permissions.OperationBusBusThirdPaymentMethodView = false;
                Permissions.OperationBusBusThirdPaymentMethodEdit = false;
                Permissions.OperationBusBusThirdPaymentDetailsView = false;
                Permissions.OperationBusBusDateofThirdPaymentView = false;
                Permissions.OperationBusBusDateofThirdPaymentEdit = false;
                Permissions.OperationBusGuideFirstPaymentView = false;
                Permissions.OperationBusGuideFirstPaymentEdit = false;
                Permissions.OperationBusGuideFirstPaymentMethodView = false;
                Permissions.OperationBusGuideFirstPaymentMethodEdit = false;
                Permissions.OperationBusGuideFirstPaymentDetailsView = false;
                Permissions.OperationBusGuideDateofFirstPaymentView = false;
                Permissions.OperationBusGuideDateofFirstPaymentEdit = false;
                Permissions.OperationBusGuideSecondPaymentView = false;
                Permissions.OperationBusGuideSecondPaymentEdit = false;
                Permissions.OperationBusGuideSecondPaymentMethodView = false;
                Permissions.OperationBusGuideSecondPaymentMethodEdit = false;
                Permissions.OperationBusGuideSecondPaymentDetailsView = false;
                Permissions.OperationBusGuideDateofSecondPaymentView = false;
                Permissions.OperationBusGuideDateofSecondPaymentEdit = false;
                Permissions.OperationBusGuideThirdPaymentView = false;
                Permissions.OperationBusGuideThirdPaymentEdit = false;
                Permissions.OperationBusGuideThirdPaymentMethodView = false;
                Permissions.OperationBusGuideThirdPaymentMethodEdit = false;
                Permissions.OperationBusGuideThirdPaymentDetailsView = false;
                Permissions.OperationBusGuideDateofThirdPaymentView = false;
                Permissions.OperationBusGuideDateofThirdPaymentEdit = false;
                Permissions.OperationBusNoteView = false;
                Permissions.OperationBusNoteEdit = false;
                // Operation Attraction
                Permissions.OperationAttractionFixedColumnCount = 0;
                Permissions.OperationAttractionIsGuideInvoiceView = false;
                Permissions.OperationAttractionIsGuideInvoiceEdit = false;
                Permissions.OperationAttractionGuideInvoicePriceView = false;
                Permissions.OperationAttractionGuideInvoicePriceEdit = false;
                Permissions.OperationAttractionIsInvoiceView = false;
                Permissions.OperationAttractionIsInvoiceEdit = false;
                Permissions.OperationAttractionInvoicePriceView = false;
                Permissions.OperationAttractionInvoicePriceEdit = false;
                Permissions.OperationAttractionOptionalView = false;
                Permissions.OperationAttractionGroupCodeView = false;
                Permissions.OperationAttractionGroupCodeEdit = false;
                Permissions.OperationAttractionGroupCodeFilter = false;
                Permissions.OperationAttractionGroupNameView = false;
                Permissions.OperationAttractionGroupNameEdit = false;
                Permissions.OperationAttractionGroupNameFilter = false;
                Permissions.OperationAttractionDetailsView = false;
                Permissions.OperationAttractionCustomerView = false;
                Permissions.OperationAttractionCustomerEdit = false;
                Permissions.OperationAttractionCustomerFilter = false;
                Permissions.OperationAttractionPaxView = false;
                Permissions.OperationAttractionPaxEdit = false;
                Permissions.OperationAttractionEmployeeView = false;
                Permissions.OperationAttractionEmployeeEdit = false;
                Permissions.OperationAttractionEstPaxView = false;
                Permissions.OperationAttractionEstPaxEdit = false;
                Permissions.OperationAttractionSupplierView = false;
                Permissions.OperationAttractionSupplierEdit = false;
                Permissions.OperationAttractionSupplierFilter = false;
                Permissions.OperationAttractionDifferenceView = false;
                Permissions.OperationAttractionDifferenceEdit = false;
                Permissions.OperationAttractionDoneView = false;
                Permissions.OperationAttractionDoneEdit = false;
                Permissions.OperationAttractionDateView = false;
                Permissions.OperationAttractionDateEdit = false;
                Permissions.OperationAttractionTimeView = false;
                Permissions.OperationAttractionTimeEdit = false;
                Permissions.OperationAttractionCategoryView = false;
                Permissions.OperationAttractionCategoryEdit = false;
                Permissions.OperationAttractionCategoryFilter = false;
                Permissions.OperationAttractionTypeView = false;
                Permissions.OperationAttractionTypeEdit = false;
                Permissions.OperationAttractionTypeFilter = false;
                Permissions.OperationAttractionFirstPaymentView = false;
                Permissions.OperationAttractionFirstPaymentEdit = false;
                Permissions.OperationAttractionFirstPaymentMethodView = false;
                Permissions.OperationAttractionFirstPaymentMethodEdit = false;
                Permissions.OperationAttractionFirstPaymentDetailsView = false;
                Permissions.OperationAttractionDateofFirstPaymentView = false;
                Permissions.OperationAttractionDateofFirstPaymentEdit = false;
                Permissions.OperationAttractionSecondPaymentView = false;
                Permissions.OperationAttractionSecondPaymentEdit = false;
                Permissions.OperationAttractionSecondPaymentMethodView = false;
                Permissions.OperationAttractionSecondPaymentMethodEdit = false;
                Permissions.OperationAttractionSecondPaymentDetailsView = false;
                Permissions.OperationAttractionDateofSecondPaymentView = false;
                Permissions.OperationAttractionDateofSecondPaymentEdit = false;
                Permissions.OperationAttractionThirdPaymentView = false;
                Permissions.OperationAttractionThirdPaymentEdit = false;
                Permissions.OperationAttractionThirdPaymentMethodView = false;
                Permissions.OperationAttractionThirdPaymentMethodEdit = false;
                Permissions.OperationAttractionThirdPaymentDetailsView = false;
                Permissions.OperationAttractionDateofThirdPaymentView = false;
                Permissions.OperationAttractionDateofThirdPaymentEdit = false;
                Permissions.OperationAttractionDepositView = false;
                Permissions.OperationAttractionDepositEdit = false;
                Permissions.OperationAttractionDepositDateView = false;
                Permissions.OperationAttractionDepositDateEdit = false;
                Permissions.OperationAttractionContactView = false;
                Permissions.OperationAttractionContactEdit = false;
                Permissions.OperationAttractionPhoneView = false;
                Permissions.OperationAttractionPhoneEdit = false;
                Permissions.OperationAttractionEmailView = false;
                Permissions.OperationAttractionEmailEdit = false;
                Permissions.OperationAttractionViewGroupContractView = false;
                Permissions.OperationAttractionAddressView = false;
                Permissions.OperationAttractionAddressEdit = false;
                Permissions.OperationAttractionCityView = false;
                Permissions.OperationAttractionCityEdit = false;
                Permissions.OperationAttractionCityFilter = false;
                Permissions.OperationAttractionStateView = false;
                Permissions.OperationAttractionStateEdit = false;
                Permissions.OperationAttractionStatusView = false;
                Permissions.OperationAttractionStatusEdit = false;
                Permissions.OperationAttractionStatusFilter = false;
                Permissions.OperationAttractionCurrencyView = false;
                Permissions.OperationAttractionCurrencyEdit = false;
                Permissions.OperationAttractionQuotaPriceView = false;
                Permissions.OperationAttractionQuotaPriceEdit = false;
                Permissions.OperationAttractionQuotaSupplierView = false;
                Permissions.OperationAttractionQuotaSupplierEdit = false;
                Permissions.OperationAttractionTotalCostView = false;
                Permissions.OperationAttractionTotalCostEdit = false;
                Permissions.OperationAttractionTotalAmountPaidView = false;
                Permissions.OperationAttractionTotalAmountPaidEdit = false;
                Permissions.OperationAttractionUnitPriceView = false;
                Permissions.OperationAttractionUnitPriceEdit = false;
                Permissions.OperationAttractionMenuView = false;
                Permissions.OperationAttractionMenuEdit = false;
                Permissions.OperationAttractionFinalPaymentView = false;
                Permissions.OperationAttractionFinalPaymentEdit = false;
                Permissions.OperationAttractionDepositAmountPaidView = false;
                Permissions.OperationAttractionDepositAmountPaidEdit = false;
                Permissions.OperationAttractionCreditCardChargeAmountView = false;
                Permissions.OperationAttractionCreditCardChargeAmountEdit = false;
                Permissions.OperationAttractionCreditCardMemoView = false;
                Permissions.OperationAttractionCreditCardMemoEdit = false;
                Permissions.OperationAttractionOutstandingAmountView = false;
                Permissions.OperationAttractionOutstandingAmountEdit = false;
                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = false;
                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = false;
                // Operation Misc
                Permissions.OperationMiscFixedColumnCount = 0;
                Permissions.OperationMiscPlaneView = false;
                Permissions.OperationMiscPlaneEdit = false;
                Permissions.OperationMiscIsCompView = false;
                Permissions.OperationMiscIsCompEdit = false;
                Permissions.OperationMiscGroupCodeView = false;
                Permissions.OperationMiscGroupCodeEdit = false;
                Permissions.OperationMiscGroupCodeFilter = false;
                Permissions.OperationMiscGroupNameView = false;
                Permissions.OperationMiscGroupNameEdit = false;
                Permissions.OperationMiscGroupNameFilter = false;
                Permissions.OperationMiscDetailsView = false;
                Permissions.OperationMiscCustomerView = false;
                Permissions.OperationMiscCustomerEdit = false;
                Permissions.OperationMiscCustomerFilter = false;
                Permissions.OperationMiscEmployeeView = false;
                Permissions.OperationMiscEmployeeEdit = false;
                Permissions.OperationMiscPaxView = false;
                Permissions.OperationMiscPaxEdit = false;
                Permissions.OperationMiscEstPaxView = false;
                Permissions.OperationMiscEstPaxEdit = false;
                Permissions.OperationMiscSupplierView = false;
                Permissions.OperationMiscSupplierEdit = false;
                Permissions.OperationMiscSupplierFilter = false;
                Permissions.OperationMiscDateView = false;
                Permissions.OperationMiscDateEdit = false;
                Permissions.OperationMiscTimeView = false;
                Permissions.OperationMiscTimeEdit = false;
                Permissions.OperationMiscServiceDetailView = false;
                Permissions.OperationMiscServiceDetailEdit = false;
                Permissions.OperationMiscContactView = false;
                Permissions.OperationMiscContactEdit = false;
                Permissions.OperationMiscPhoneView = false;
                Permissions.OperationMiscPhoneEdit = false;
                Permissions.OperationMiscEmailView = false;
                Permissions.OperationMiscEmailEdit = false;
                Permissions.OperationMiscViewGroupContractView = false;
                Permissions.OperationMiscAddressView = false;
                Permissions.OperationMiscAddressEdit = false;
                Permissions.OperationMiscCityView = false;
                Permissions.OperationMiscCityEdit = false;
                Permissions.OperationMiscCityFilter = false;
                Permissions.OperationMiscStatusView = false;
                Permissions.OperationMiscStatusEdit = false;
                Permissions.OperationMiscStatusFilter = false;
                Permissions.OperationMiscUnitPriceView = false;
                Permissions.OperationMiscUnitPriceEdit = false;
                Permissions.OperationMiscUnitPricePGView = false;
                Permissions.OperationMiscUnitPricePGEdit = false;
                Permissions.OperationMiscDiffView = false;
                Permissions.OperationMiscDiffEdit = false;
                Permissions.OperationMiscPGDiffView = false;
                Permissions.OperationMiscPGDiffEdit = false;
                Permissions.OperationMiscTotalAmountPaidView = false;
                Permissions.OperationMiscTotalAmountPaidEdit = false;
                Permissions.OperationMiscTotalAmountCostView = false;
                Permissions.OperationMiscTotalAmountCostEdit = false;
                Permissions.OperationMiscTotalOutAmountView = false;
                Permissions.OperationMiscTotalOutAmountEdit = false;
                Permissions.OperationMiscCurrencyView = false;
                Permissions.OperationMiscCurrencyEdit = false;
                Permissions.OperationMiscFirstPaymentView = false;
                Permissions.OperationMiscFirstPaymentEdit = false;
                Permissions.OperationMiscFirstPaymentMethodView = false;
                Permissions.OperationMiscFirstPaymentMethodEdit = false;
                Permissions.OperationMiscFirstPaymentDetailsView = false;
                Permissions.OperationMiscDateofFirstPaymentView = false;
                Permissions.OperationMiscDateofFirstPaymentEdit = false;
                Permissions.OperationMiscSecondPaymentView = false;
                Permissions.OperationMiscSecondPaymentEdit = false;
                Permissions.OperationMiscSecondPaymentMethodView = false;
                Permissions.OperationMiscSecondPaymentMethodEdit = false;
                Permissions.OperationMiscSecondPaymentDetailsView = false;
                Permissions.OperationMiscDateofSecondPaymentView = false;
                Permissions.OperationMiscDateofSecondPaymentEdit = false;
                Permissions.OperationMiscThirdPaymentView = false;
                Permissions.OperationMiscThirdPaymentEdit = false;
                Permissions.OperationMiscThirdPaymentMethodView = false;
                Permissions.OperationMiscThirdPaymentMethodEdit = false;
                Permissions.OperationMiscThirdPaymentDetailsView = false;
                Permissions.OperationMiscDateofThirdPaymentView = false;
                Permissions.OperationMiscDateofThirdPaymentEdit = false;
                Permissions.OperationMiscQuotaPriceView = false;
                Permissions.OperationMiscQuotaPriceEdit = false;
                Permissions.OperationMiscQuotaPerGroupPriceView = false;
                Permissions.OperationMiscQuotaPerGroupPriceEdit = false;
                Permissions.OperationMiscQuotaSupplierView = false;
                Permissions.OperationMiscQuotaSupplierEdit = false;
                Permissions.OperationMiscNotesView = false;
                Permissions.OperationMiscNotesEdit = false;
                // Operation Tech Prog
                Permissions.OperationTechProgFixedColumnCount = 0;
                Permissions.OperationTechProgDayView = false;
                Permissions.OperationTechProgDayEdit = false;
                Permissions.OperationTechProgPrintView = false;
                Permissions.OperationTechProgPrintEdit = false;
                Permissions.OperationTechProgDateView = false;
                Permissions.OperationTechProgDateEdit = false;
                Permissions.OperationTechProgTimeView = false;
                Permissions.OperationTechProgTimeEdit = false;
                Permissions.OperationTechProgDetailView = false;
                Permissions.OperationTechProgDetailEdit = false;
                Permissions.OperationTechProgDescriptionView = false;
                Permissions.OperationTechProgDescriptionEdit = false;
                Permissions.OperationTechProgViaView = false;
                Permissions.OperationTechProgViaEdit = false;
                Permissions.OperationTechProgTypeView = false;
                Permissions.OperationTechProgTypeEdit = false;
                Permissions.OperationTechProgTypeFilter = false;
                Permissions.OperationTechProgVendorNameView = false;
                Permissions.OperationTechProgVendorNameEdit = false;
                Permissions.OperationTechProgVendorAddressView = false;
                Permissions.OperationTechProgVendorAddressEdit = false;
                Permissions.OperationTechProgVendorEmailView = false;
                Permissions.OperationTechProgVendorEmailEdit = false;
                Permissions.OperationTechProgGuideNameView = false;
                Permissions.OperationTechProgGuideNameEdit = false;
                Permissions.OperationTechProgGuidePhoneView = false;
                Permissions.OperationTechProgGuidePhoneEdit = false;
                Permissions.OperationTechProgCityView = false;
                Permissions.OperationTechProgCityEdit = false;
                Permissions.OperationTechProgAreaView = false;
                Permissions.OperationTechProgAreaEdit = false;
                // Operation Group CheckList
                Permissions.OperationGroupCheckListFixedColumnCount = 0;
                Permissions.OperationGroupCheckListGroupNameView = false;
                Permissions.OperationGroupCheckListGroupNameEdit = false;
                Permissions.OperationGroupCheckListGroupNameFilter = false;
                Permissions.OperationGroupCheckListGroupCodeView = false;
                Permissions.OperationGroupCheckListGroupCodeEdit = false;
                Permissions.OperationGroupCheckListGroupCodeFilter = false;
                Permissions.OperationGroupCheckListPaxView = false;
                Permissions.OperationGroupCheckListPaxEdit = false;
                Permissions.OperationGroupCheckListIsGirView = false;
                Permissions.OperationGroupCheckListIsGirEdit = false;
                Permissions.OperationGroupCheckListCustomerView = false;
                Permissions.OperationGroupCheckListCustomerEdit = false;
                Permissions.OperationGroupCheckListCustomerFilter = false;
                Permissions.OperationGroupCheckListHotelStatusView = false;
                Permissions.OperationGroupCheckListHotelStatusEdit = false;
                Permissions.OperationGroupCheckListMonthOfArrivalView = false;
                Permissions.OperationGroupCheckListMonthOfArrivalEdit = false;
                Permissions.OperationGroupCheckListArrivalDateView = false;
                Permissions.OperationGroupCheckListArrivalDateEdit = false;
                Permissions.OperationGroupCheckListArrivalCityView = false;
                Permissions.OperationGroupCheckListArrivalCityEdit = false;
                Permissions.OperationGroupCheckListDepartureDateView = false;
                Permissions.OperationGroupCheckListDepartureDateEdit = false;
                Permissions.OperationGroupCheckListDepartureCityView = false;
                Permissions.OperationGroupCheckListDepartureCityEdit = false;
                Permissions.OperationGroupCheckListHotelNotesView = false;
                Permissions.OperationGroupCheckListHotelNotesEdit = false;
                Permissions.OperationGroupCheckListBusGuideNotesView = false;
                Permissions.OperationGroupCheckListBusGuideNotesEdit = false;
            }
            else
            {
                var OperationGroupCheckList = (from GrpCheckList in Operation where GrpCheckList.ToolTabID == 19 select GrpCheckList).SingleOrDefault();
                if (OperationGroupCheckList == null)
                {
                    Permissions.OperationGroupCheckListFixedColumnCount = 0;
                    Permissions.OperationGroupCheckListGroupNameView = false;
                    Permissions.OperationGroupCheckListGroupNameEdit = false;
                    Permissions.OperationGroupCheckListGroupNameFilter = false;
                    Permissions.OperationGroupCheckListGroupCodeView = false;
                    Permissions.OperationGroupCheckListGroupCodeEdit = false;
                    Permissions.OperationGroupCheckListGroupCodeFilter = false;
                    Permissions.OperationGroupCheckListPaxView = false;
                    Permissions.OperationGroupCheckListPaxEdit = false;
                    Permissions.OperationGroupCheckListIsGirView = false;
                    Permissions.OperationGroupCheckListIsGirEdit = false;
                    Permissions.OperationGroupCheckListCustomerView = false;
                    Permissions.OperationGroupCheckListCustomerEdit = false;
                    Permissions.OperationGroupCheckListCustomerFilter = false;
                    Permissions.OperationGroupCheckListHotelStatusView = false;
                    Permissions.OperationGroupCheckListHotelStatusEdit = false;
                    Permissions.OperationGroupCheckListMonthOfArrivalView = false;
                    Permissions.OperationGroupCheckListMonthOfArrivalEdit = false;
                    Permissions.OperationGroupCheckListArrivalDateView = false;
                    Permissions.OperationGroupCheckListArrivalDateEdit = false;
                    Permissions.OperationGroupCheckListArrivalCityView = false;
                    Permissions.OperationGroupCheckListArrivalCityEdit = false;
                    Permissions.OperationGroupCheckListDepartureDateView = false;
                    Permissions.OperationGroupCheckListDepartureDateEdit = false;
                    Permissions.OperationGroupCheckListDepartureCityView = false;
                    Permissions.OperationGroupCheckListDepartureCityEdit = false;
                    Permissions.OperationGroupCheckListHotelNotesView = false;
                    Permissions.OperationGroupCheckListHotelNotesEdit = false;
                    Permissions.OperationGroupCheckListBusGuideNotesView = false;
                    Permissions.OperationGroupCheckListBusGuideNotesEdit = false;
                }
                else
                {
                    var OperationGroupCheckListColumns = (from grpchecklistcolumn in OperationGroupCheckList.ToolTabColumns select grpchecklistcolumn.Permisionss).ToList();
                    if (OperationGroupCheckListColumns == null)
                    {
                        Permissions.OperationGroupCheckListFixedColumnCount = 0;
                        Permissions.OperationGroupCheckListGroupNameView = false;
                        Permissions.OperationGroupCheckListGroupNameEdit = false;
                        Permissions.OperationGroupCheckListGroupNameFilter = false;
                        Permissions.OperationGroupCheckListGroupCodeView = false;
                        Permissions.OperationGroupCheckListGroupCodeEdit = false;
                        Permissions.OperationGroupCheckListGroupCodeFilter = false;
                        Permissions.OperationGroupCheckListPaxView = false;
                        Permissions.OperationGroupCheckListPaxEdit = false;
                        Permissions.OperationGroupCheckListIsGirView = false;
                        Permissions.OperationGroupCheckListIsGirEdit = false;
                        Permissions.OperationGroupCheckListCustomerView = false;
                        Permissions.OperationGroupCheckListCustomerEdit = false;
                        Permissions.OperationGroupCheckListCustomerFilter = false;
                        Permissions.OperationGroupCheckListHotelStatusView = false;
                        Permissions.OperationGroupCheckListHotelStatusEdit = false;
                        Permissions.OperationGroupCheckListMonthOfArrivalView = false;
                        Permissions.OperationGroupCheckListMonthOfArrivalEdit = false;
                        Permissions.OperationGroupCheckListArrivalDateView = false;
                        Permissions.OperationGroupCheckListArrivalDateEdit = false;
                        Permissions.OperationGroupCheckListArrivalCityView = false;
                        Permissions.OperationGroupCheckListArrivalCityEdit = false;
                        Permissions.OperationGroupCheckListDepartureDateView = false;
                        Permissions.OperationGroupCheckListDepartureDateEdit = false;
                        Permissions.OperationGroupCheckListDepartureCityView = false;
                        Permissions.OperationGroupCheckListDepartureCityEdit = false;
                        Permissions.OperationGroupCheckListHotelNotesView = false;
                        Permissions.OperationGroupCheckListHotelNotesEdit = false;
                        Permissions.OperationGroupCheckListBusGuideNotesView = false;
                        Permissions.OperationGroupCheckListBusGuideNotesEdit = false;
                    }
                    else
                    {
                        if (!OperationGroupCheckListColumns.Any(perm => perm == null))
                        {
                            if (OperationGroupCheckListColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationGroupCheckListFixedColumnCount = OperationGroupCheckList.PermFixCol != null ? Convert.ToInt32(OperationGroupCheckList.PermFixCol) : 0;
                                foreach (var GroupCheckList in OperationGroupCheckListColumns)
                                {
                                    switch (GroupCheckList.PerColumnName)
                                    {
                                        case "Group Code":
                                            {
                                                Permissions.OperationGroupCheckListGroupCodeView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListGroupCodeEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListGroupCodeFilter = GroupCheckList.PerHasFilter != null ? Convert.ToBoolean(GroupCheckList.PerHasFilter) : false;
                                                Permissions.OperationGroupCheckListGroupCodeLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Name":
                                            {
                                                Permissions.OperationGroupCheckListGroupNameView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListGroupNameEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListGroupNameFilter = GroupCheckList.PerHasFilter != null ? Convert.ToBoolean(GroupCheckList.PerHasFilter) : false;
                                                Permissions.OperationGroupCheckListGroupNameLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationGroupCheckListCustomerView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListCustomerEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListCustomerFilter = GroupCheckList.PerHasFilter != null ? Convert.ToBoolean(GroupCheckList.PerHasFilter) : false;
                                                Permissions.OperationGroupCheckListCustomerLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationGroupCheckListPaxView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListPaxEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListPaxLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Is Gir":
                                            {
                                                Permissions.OperationGroupCheckListIsGirView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListIsGirEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListIsGirLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Hotel Status":
                                            {
                                                Permissions.OperationGroupCheckListHotelStatusView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListHotelStatusEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListHotelStatusLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Month Of Arrival":
                                            {
                                                Permissions.OperationGroupCheckListMonthOfArrivalView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListMonthOfArrivalEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListMonthOfArrivalLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Arrival Date":
                                            {
                                                Permissions.OperationGroupCheckListArrivalDateView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListArrivalDateEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListArrivalDateLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Arrival City":
                                            {
                                                Permissions.OperationGroupCheckListArrivalCityView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListArrivalCityEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListArrivalCityLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Departure Date":
                                            {
                                                Permissions.OperationGroupCheckListDepartureDateView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListDepartureDateEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListDepartureDateLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Deparutre City":
                                            {
                                                Permissions.OperationGroupCheckListDepartureCityView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListDepartureCityEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListDepartureCityLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Hotel Notes":
                                            {
                                                Permissions.OperationGroupCheckListHotelNotesView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListHotelNotesEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListHotelNotesLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus-Guide Notes":
                                            {
                                                Permissions.OperationGroupCheckListBusGuideNotesView = GroupCheckList.PerColumnView != null ? Convert.ToBoolean(GroupCheckList.PerColumnView) : false;
                                                Permissions.OperationGroupCheckListBusGuideNotesEdit = GroupCheckList.PerColumnEdit != null ? Convert.ToBoolean(GroupCheckList.PerColumnEdit) : false;
                                                Permissions.OperationGroupCheckListBusGuideNotesLineNo = GroupCheckList.PerColumnLineNo != null ? Convert.ToInt32(GroupCheckList.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationGroupCheckListFixedColumnCount = 0;
                                Permissions.OperationGroupCheckListGroupNameView = false;
                                Permissions.OperationGroupCheckListGroupNameEdit = false;
                                Permissions.OperationGroupCheckListGroupNameFilter = false;
                                Permissions.OperationGroupCheckListGroupCodeView = false;
                                Permissions.OperationGroupCheckListGroupCodeEdit = false;
                                Permissions.OperationGroupCheckListGroupCodeFilter = false;
                                Permissions.OperationGroupCheckListPaxView = false;
                                Permissions.OperationGroupCheckListPaxEdit = false;
                                Permissions.OperationGroupCheckListIsGirView = false;
                                Permissions.OperationGroupCheckListIsGirEdit = false;
                                Permissions.OperationGroupCheckListCustomerView = false;
                                Permissions.OperationGroupCheckListCustomerEdit = false;
                                Permissions.OperationGroupCheckListCustomerFilter = false;
                                Permissions.OperationGroupCheckListHotelStatusView = false;
                                Permissions.OperationGroupCheckListHotelStatusEdit = false;
                                Permissions.OperationGroupCheckListMonthOfArrivalView = false;
                                Permissions.OperationGroupCheckListMonthOfArrivalEdit = false;
                                Permissions.OperationGroupCheckListArrivalDateView = false;
                                Permissions.OperationGroupCheckListArrivalDateEdit = false;
                                Permissions.OperationGroupCheckListArrivalCityView = false;
                                Permissions.OperationGroupCheckListArrivalCityEdit = false;
                                Permissions.OperationGroupCheckListDepartureDateView = false;
                                Permissions.OperationGroupCheckListDepartureDateEdit = false;
                                Permissions.OperationGroupCheckListDepartureCityView = false;
                                Permissions.OperationGroupCheckListDepartureCityEdit = false;
                                Permissions.OperationGroupCheckListHotelNotesView = false;
                                Permissions.OperationGroupCheckListHotelNotesEdit = false;
                                Permissions.OperationGroupCheckListBusGuideNotesView = false;
                                Permissions.OperationGroupCheckListBusGuideNotesEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationGroupCheckListFixedColumnCount = 0;
                            Permissions.OperationGroupCheckListGroupNameView = false;
                            Permissions.OperationGroupCheckListGroupNameEdit = false;
                            Permissions.OperationGroupCheckListGroupNameFilter = false;
                            Permissions.OperationGroupCheckListGroupCodeView = false;
                            Permissions.OperationGroupCheckListGroupCodeEdit = false;
                            Permissions.OperationGroupCheckListGroupCodeFilter = false;
                            Permissions.OperationGroupCheckListPaxView = false;
                            Permissions.OperationGroupCheckListPaxEdit = false;
                            Permissions.OperationGroupCheckListIsGirView = false;
                            Permissions.OperationGroupCheckListIsGirEdit = false;
                            Permissions.OperationGroupCheckListCustomerView = false;
                            Permissions.OperationGroupCheckListCustomerEdit = false;
                            Permissions.OperationGroupCheckListCustomerFilter = false;
                            Permissions.OperationGroupCheckListHotelStatusView = false;
                            Permissions.OperationGroupCheckListHotelStatusEdit = false;
                            Permissions.OperationGroupCheckListMonthOfArrivalView = false;
                            Permissions.OperationGroupCheckListMonthOfArrivalEdit = false;
                            Permissions.OperationGroupCheckListArrivalDateView = false;
                            Permissions.OperationGroupCheckListArrivalDateEdit = false;
                            Permissions.OperationGroupCheckListArrivalCityView = false;
                            Permissions.OperationGroupCheckListArrivalCityEdit = false;
                            Permissions.OperationGroupCheckListDepartureDateView = false;
                            Permissions.OperationGroupCheckListDepartureDateEdit = false;
                            Permissions.OperationGroupCheckListDepartureCityView = false;
                            Permissions.OperationGroupCheckListDepartureCityEdit = false;
                            Permissions.OperationGroupCheckListHotelNotesView = false;
                            Permissions.OperationGroupCheckListHotelNotesEdit = false;
                            Permissions.OperationGroupCheckListBusGuideNotesView = false;
                            Permissions.OperationGroupCheckListBusGuideNotesEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationTechProg = (from TechProg in Operation where TechProg.ToolTabID == 18 select TechProg).SingleOrDefault();
                if (OperationTechProg == null)
                {
                    Permissions.OperationTechProgFixedColumnCount = 0;
                    Permissions.OperationTechProgDayView = false;
                    Permissions.OperationTechProgDayEdit = false;
                    Permissions.OperationTechProgPrintView = false;
                    Permissions.OperationTechProgPrintEdit = false;
                    Permissions.OperationTechProgDateView = false;
                    Permissions.OperationTechProgDateEdit = false;
                    Permissions.OperationTechProgTimeView = false;
                    Permissions.OperationTechProgTimeEdit = false;
                    Permissions.OperationTechProgDetailView = false;
                    Permissions.OperationTechProgDetailEdit = false;
                    Permissions.OperationTechProgDescriptionView = false;
                    Permissions.OperationTechProgDescriptionEdit = false;
                    Permissions.OperationTechProgViaView = false;
                    Permissions.OperationTechProgViaEdit = false;
                    Permissions.OperationTechProgTypeView = false;
                    Permissions.OperationTechProgTypeEdit = false;
                    Permissions.OperationTechProgTypeFilter = false;
                    Permissions.OperationTechProgVendorNameView = false;
                    Permissions.OperationTechProgVendorNameEdit = false;
                    Permissions.OperationTechProgVendorAddressView = false;
                    Permissions.OperationTechProgVendorAddressEdit = false;
                    Permissions.OperationTechProgVendorEmailView = false;
                    Permissions.OperationTechProgVendorEmailEdit = false;
                    Permissions.OperationTechProgGuideNameView = false;
                    Permissions.OperationTechProgGuideNameEdit = false;
                    Permissions.OperationTechProgGuidePhoneView = false;
                    Permissions.OperationTechProgGuidePhoneEdit = false;
                    Permissions.OperationTechProgCityView = false;
                    Permissions.OperationTechProgCityEdit = false;
                    Permissions.OperationTechProgAreaView = false;
                    Permissions.OperationTechProgAreaEdit = false;
                }
                else
                {
                    var OperationTechProgColumns = (from roomcolumn in OperationTechProg.ToolTabColumns select roomcolumn.Permisionss).ToList();
                    if (OperationTechProgColumns == null)
                    {
                        Permissions.OperationTechProgFixedColumnCount = 0;
                        Permissions.OperationTechProgDayView = false;
                        Permissions.OperationTechProgDayEdit = false;
                        Permissions.OperationTechProgPrintView = false;
                        Permissions.OperationTechProgPrintEdit = false;
                        Permissions.OperationTechProgDateView = false;
                        Permissions.OperationTechProgDateEdit = false;
                        Permissions.OperationTechProgTimeView = false;
                        Permissions.OperationTechProgTimeEdit = false;
                        Permissions.OperationTechProgDetailView = false;
                        Permissions.OperationTechProgDetailEdit = false;
                        Permissions.OperationTechProgDescriptionView = false;
                        Permissions.OperationTechProgDescriptionEdit = false;
                        Permissions.OperationTechProgViaView = false;
                        Permissions.OperationTechProgViaEdit = false;
                        Permissions.OperationTechProgTypeView = false;
                        Permissions.OperationTechProgTypeEdit = false;
                        Permissions.OperationTechProgTypeFilter = false;
                        Permissions.OperationTechProgVendorNameView = false;
                        Permissions.OperationTechProgVendorNameEdit = false;
                        Permissions.OperationTechProgVendorAddressView = false;
                        Permissions.OperationTechProgVendorAddressEdit = false;
                        Permissions.OperationTechProgVendorEmailView = false;
                        Permissions.OperationTechProgVendorEmailEdit = false;
                        Permissions.OperationTechProgGuideNameView = false;
                        Permissions.OperationTechProgGuideNameEdit = false;
                        Permissions.OperationTechProgGuidePhoneView = false;
                        Permissions.OperationTechProgGuidePhoneEdit = false;
                        Permissions.OperationTechProgCityView = false;
                        Permissions.OperationTechProgCityEdit = false;
                        Permissions.OperationTechProgAreaView = false;
                        Permissions.OperationTechProgAreaEdit = false;
                    }
                    else
                    {
                        if (!OperationTechProgColumns.Any(perm => perm == null))
                        {
                            if (OperationTechProgColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationTechProgFixedColumnCount = OperationTechProg.PermFixCol != null ? Convert.ToInt32(OperationTechProg.PermFixCol) : 0;
                                foreach (var TechProg in OperationTechProgColumns)
                                {
                                    switch (TechProg.PerColumnName)
                                    {
                                        case "Day":
                                            {
                                                Permissions.OperationTechProgDayView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgDayEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgDayLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Print":
                                            {
                                                Permissions.OperationTechProgPrintView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgPrintEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgPrintLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date":
                                            {
                                                Permissions.OperationTechProgDateView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgDateEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgDateLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Time":
                                            {
                                                Permissions.OperationTechProgTimeView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgTimeEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgTimeLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Detail":
                                            {
                                                Permissions.OperationTechProgDetailView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgDetailEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgDetailLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Description":
                                            {
                                                Permissions.OperationTechProgDescriptionView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgDescriptionEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgDescriptionLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Via":
                                            {
                                                Permissions.OperationTechProgViaView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgViaEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgViaLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Type":
                                            {
                                                Permissions.OperationTechProgTypeView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgTypeEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgTypeFilter = TechProg.PerHasFilter != null ? Convert.ToBoolean(TechProg.PerHasFilter) : false;
                                                Permissions.OperationTechProgTypeLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Vendor Name":
                                            {
                                                Permissions.OperationTechProgVendorNameView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgVendorNameEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgVendorNameLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Vendor Address":
                                            {
                                                Permissions.OperationTechProgVendorAddressView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgVendorAddressEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgVendorAddressLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Vendor Email":
                                            {
                                                Permissions.OperationTechProgVendorEmailView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgVendorEmailEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgVendorEmailLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Name":
                                            {
                                                Permissions.OperationTechProgGuideNameView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgGuideNameEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgGuideNameLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Phone":
                                            {
                                                Permissions.OperationTechProgGuidePhoneView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgGuidePhoneEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgGuidePhoneLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "City":
                                            {
                                                Permissions.OperationTechProgCityView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgCityEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgCityLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Area":
                                            {
                                                Permissions.OperationTechProgAreaView = TechProg.PerColumnView != null ? Convert.ToBoolean(TechProg.PerColumnView) : false;
                                                Permissions.OperationTechProgAreaEdit = TechProg.PerColumnEdit != null ? Convert.ToBoolean(TechProg.PerColumnEdit) : false;
                                                Permissions.OperationTechProgAreaLineNo = TechProg.PerColumnLineNo != null ? Convert.ToInt32(TechProg.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationTechProgFixedColumnCount = 0;
                                Permissions.OperationTechProgDayView = false;
                                Permissions.OperationTechProgDayEdit = false;
                                Permissions.OperationTechProgPrintView = false;
                                Permissions.OperationTechProgPrintEdit = false;
                                Permissions.OperationTechProgDateView = false;
                                Permissions.OperationTechProgDateEdit = false;
                                Permissions.OperationTechProgTimeView = false;
                                Permissions.OperationTechProgTimeEdit = false;
                                Permissions.OperationTechProgDetailView = false;
                                Permissions.OperationTechProgDetailEdit = false;
                                Permissions.OperationTechProgDescriptionView = false;
                                Permissions.OperationTechProgDescriptionEdit = false;
                                Permissions.OperationTechProgViaView = false;
                                Permissions.OperationTechProgViaEdit = false;
                                Permissions.OperationTechProgTypeView = false;
                                Permissions.OperationTechProgTypeEdit = false;
                                Permissions.OperationTechProgTypeFilter = false;
                                Permissions.OperationTechProgVendorNameView = false;
                                Permissions.OperationTechProgVendorNameEdit = false;
                                Permissions.OperationTechProgVendorAddressView = false;
                                Permissions.OperationTechProgVendorAddressEdit = false;
                                Permissions.OperationTechProgVendorEmailView = false;
                                Permissions.OperationTechProgVendorEmailEdit = false;
                                Permissions.OperationTechProgGuideNameView = false;
                                Permissions.OperationTechProgGuideNameEdit = false;
                                Permissions.OperationTechProgGuidePhoneView = false;
                                Permissions.OperationTechProgGuidePhoneEdit = false;
                                Permissions.OperationTechProgCityView = false;
                                Permissions.OperationTechProgCityEdit = false;
                                Permissions.OperationTechProgAreaView = false;
                                Permissions.OperationTechProgAreaEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationTechProgFixedColumnCount = 0;
                            Permissions.OperationTechProgDayView = false;
                            Permissions.OperationTechProgDayEdit = false;
                            Permissions.OperationTechProgPrintView = false;
                            Permissions.OperationTechProgPrintEdit = false;
                            Permissions.OperationTechProgDateView = false;
                            Permissions.OperationTechProgDateEdit = false;
                            Permissions.OperationTechProgTimeView = false;
                            Permissions.OperationTechProgTimeEdit = false;
                            Permissions.OperationTechProgDetailView = false;
                            Permissions.OperationTechProgDetailEdit = false;
                            Permissions.OperationTechProgDescriptionView = false;
                            Permissions.OperationTechProgDescriptionEdit = false;
                            Permissions.OperationTechProgViaView = false;
                            Permissions.OperationTechProgViaEdit = false;
                            Permissions.OperationTechProgTypeView = false;
                            Permissions.OperationTechProgTypeEdit = false;
                            Permissions.OperationTechProgTypeFilter = false;
                            Permissions.OperationTechProgVendorNameView = false;
                            Permissions.OperationTechProgVendorNameEdit = false;
                            Permissions.OperationTechProgVendorAddressView = false;
                            Permissions.OperationTechProgVendorAddressEdit = false;
                            Permissions.OperationTechProgVendorEmailView = false;
                            Permissions.OperationTechProgVendorEmailEdit = false;
                            Permissions.OperationTechProgGuideNameView = false;
                            Permissions.OperationTechProgGuideNameEdit = false;
                            Permissions.OperationTechProgGuidePhoneView = false;
                            Permissions.OperationTechProgGuidePhoneEdit = false;
                            Permissions.OperationTechProgCityView = false;
                            Permissions.OperationTechProgCityEdit = false;
                            Permissions.OperationTechProgAreaView = false;
                            Permissions.OperationTechProgAreaEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationAttractions = (from attraction in Operation where attraction.ToolTabID == 10 select attraction).SingleOrDefault();
                if (OperationAttractions == null)
                {
                    Permissions.OperationAttractionFixedColumnCount = 0;
                    Permissions.OperationAttractionIsGuideInvoiceView = false;
                    Permissions.OperationAttractionIsGuideInvoiceEdit = false;
                    Permissions.OperationAttractionGuideInvoicePriceView = false;
                    Permissions.OperationAttractionGuideInvoicePriceEdit = false;
                    Permissions.OperationAttractionIsInvoiceView = false;
                    Permissions.OperationAttractionIsInvoiceEdit = false;
                    Permissions.OperationAttractionInvoicePriceView = false;
                    Permissions.OperationAttractionInvoicePriceEdit = false;
                    Permissions.OperationAttractionOptionalView = false;
                    Permissions.OperationAttractionGroupCodeView = false;
                    Permissions.OperationAttractionGroupCodeEdit = false;
                    Permissions.OperationAttractionGroupCodeFilter = false;
                    Permissions.OperationAttractionGroupNameView = false;
                    Permissions.OperationAttractionGroupNameEdit = false;
                    Permissions.OperationAttractionGroupNameFilter = false;
                    Permissions.OperationAttractionDetailsView = false;
                    Permissions.OperationAttractionCustomerView = false;
                    Permissions.OperationAttractionCustomerEdit = false;
                    Permissions.OperationAttractionCustomerFilter = false;
                    Permissions.OperationAttractionPaxView = false;
                    Permissions.OperationAttractionPaxEdit = false;
                    Permissions.OperationAttractionEmployeeView = false;
                    Permissions.OperationAttractionEmployeeEdit = false;
                    Permissions.OperationAttractionEstPaxView = false;
                    Permissions.OperationAttractionEstPaxEdit = false;
                    Permissions.OperationAttractionSupplierView = false;
                    Permissions.OperationAttractionSupplierEdit = false;
                    Permissions.OperationAttractionSupplierFilter = false;
                    Permissions.OperationAttractionDifferenceView = false;
                    Permissions.OperationAttractionDifferenceEdit = false;
                    Permissions.OperationAttractionDoneView = false;
                    Permissions.OperationAttractionDoneEdit = false;
                    Permissions.OperationAttractionDateView = false;
                    Permissions.OperationAttractionDateEdit = false;
                    Permissions.OperationAttractionTimeView = false;
                    Permissions.OperationAttractionTimeEdit = false;
                    Permissions.OperationAttractionCategoryView = false;
                    Permissions.OperationAttractionCategoryEdit = false;
                    Permissions.OperationAttractionCategoryFilter = false;
                    Permissions.OperationAttractionTypeView = false;
                    Permissions.OperationAttractionTypeEdit = false;
                    Permissions.OperationAttractionTypeFilter = false;
                    Permissions.OperationAttractionFirstPaymentView = false;
                    Permissions.OperationAttractionFirstPaymentEdit = false;
                    Permissions.OperationAttractionFirstPaymentMethodView = false;
                    Permissions.OperationAttractionFirstPaymentMethodEdit = false;
                    Permissions.OperationAttractionFirstPaymentDetailsView = false;
                    Permissions.OperationAttractionDateofFirstPaymentView = false;
                    Permissions.OperationAttractionDateofFirstPaymentEdit = false;
                    Permissions.OperationAttractionSecondPaymentView = false;
                    Permissions.OperationAttractionSecondPaymentEdit = false;
                    Permissions.OperationAttractionSecondPaymentMethodView = false;
                    Permissions.OperationAttractionSecondPaymentMethodEdit = false;
                    Permissions.OperationAttractionSecondPaymentDetailsView = false;
                    Permissions.OperationAttractionDateofSecondPaymentView = false;
                    Permissions.OperationAttractionDateofSecondPaymentEdit = false;
                    Permissions.OperationAttractionThirdPaymentView = false;
                    Permissions.OperationAttractionThirdPaymentEdit = false;
                    Permissions.OperationAttractionThirdPaymentMethodView = false;
                    Permissions.OperationAttractionThirdPaymentMethodEdit = false;
                    Permissions.OperationAttractionThirdPaymentDetailsView = false;
                    Permissions.OperationAttractionDateofThirdPaymentView = false;
                    Permissions.OperationAttractionDateofThirdPaymentEdit = false;
                    Permissions.OperationAttractionDepositView = false;
                    Permissions.OperationAttractionDepositEdit = false;
                    Permissions.OperationAttractionDepositDateView = false;
                    Permissions.OperationAttractionDepositDateEdit = false;
                    Permissions.OperationAttractionContactView = false;
                    Permissions.OperationAttractionContactEdit = false;
                    Permissions.OperationAttractionPhoneView = false;
                    Permissions.OperationAttractionPhoneEdit = false;
                    Permissions.OperationAttractionEmailView = false;
                    Permissions.OperationAttractionEmailEdit = false;
                    Permissions.OperationAttractionViewGroupContractView = false;
                    Permissions.OperationAttractionAddressView = false;
                    Permissions.OperationAttractionAddressEdit = false;
                    Permissions.OperationAttractionCityView = false;
                    Permissions.OperationAttractionCityEdit = false;
                    Permissions.OperationAttractionCityFilter = false;
                    Permissions.OperationAttractionStateView = false;
                    Permissions.OperationAttractionStateEdit = false;
                    Permissions.OperationAttractionStatusView = false;
                    Permissions.OperationAttractionStatusEdit = false;
                    Permissions.OperationAttractionStatusFilter = false;
                    Permissions.OperationAttractionCurrencyView = false;
                    Permissions.OperationAttractionCurrencyEdit = false;
                    Permissions.OperationAttractionQuotaPriceView = false;
                    Permissions.OperationAttractionQuotaPriceEdit = false;
                    Permissions.OperationAttractionQuotaSupplierView = false;
                    Permissions.OperationAttractionQuotaSupplierEdit = false;
                    Permissions.OperationAttractionTotalCostView = false;
                    Permissions.OperationAttractionTotalCostEdit = false;
                    Permissions.OperationAttractionTotalAmountPaidView = false;
                    Permissions.OperationAttractionTotalAmountPaidEdit = false;
                    Permissions.OperationAttractionUnitPriceView = false;
                    Permissions.OperationAttractionUnitPriceEdit = false;
                    Permissions.OperationAttractionMenuView = false;
                    Permissions.OperationAttractionMenuEdit = false;
                    Permissions.OperationAttractionFinalPaymentView = false;
                    Permissions.OperationAttractionFinalPaymentEdit = false;
                    Permissions.OperationAttractionDepositAmountPaidView = false;
                    Permissions.OperationAttractionDepositAmountPaidEdit = false;
                    Permissions.OperationAttractionCreditCardChargeAmountView = false;
                    Permissions.OperationAttractionCreditCardChargeAmountEdit = false;
                    Permissions.OperationAttractionCreditCardMemoView = false;
                    Permissions.OperationAttractionCreditCardMemoEdit = false;
                    Permissions.OperationAttractionOutstandingAmountView = false;
                    Permissions.OperationAttractionOutstandingAmountEdit = false;
                    Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = false;
                    Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = false;
                }
                else
                {
                    var OperationAttractionsColumns = (from roomcolumn in OperationAttractions.ToolTabColumns select roomcolumn.Permisionss).ToList();
                    if (OperationAttractionsColumns == null)
                    {
                        Permissions.OperationAttractionFixedColumnCount = 0;
                        Permissions.OperationAttractionIsGuideInvoiceView = false;
                        Permissions.OperationAttractionIsGuideInvoiceEdit = false;
                        Permissions.OperationAttractionGuideInvoicePriceView = false;
                        Permissions.OperationAttractionGuideInvoicePriceEdit = false;
                        Permissions.OperationAttractionIsInvoiceView = false;
                        Permissions.OperationAttractionIsInvoiceEdit = false;
                        Permissions.OperationAttractionInvoicePriceView = false;
                        Permissions.OperationAttractionInvoicePriceEdit = false;
                        Permissions.OperationAttractionOptionalView = false;
                        Permissions.OperationAttractionGroupCodeView = false;
                        Permissions.OperationAttractionGroupCodeEdit = false;
                        Permissions.OperationAttractionGroupCodeFilter = false;
                        Permissions.OperationAttractionGroupNameView = false;
                        Permissions.OperationAttractionGroupNameEdit = false;
                        Permissions.OperationAttractionGroupNameFilter = false;
                        Permissions.OperationAttractionDetailsView = false;
                        Permissions.OperationAttractionCustomerView = false;
                        Permissions.OperationAttractionCustomerEdit = false;
                        Permissions.OperationAttractionCustomerFilter = false;
                        Permissions.OperationAttractionPaxView = false;
                        Permissions.OperationAttractionPaxEdit = false;
                        Permissions.OperationAttractionEmployeeView = false;
                        Permissions.OperationAttractionEmployeeEdit = false;
                        Permissions.OperationAttractionEstPaxView = false;
                        Permissions.OperationAttractionEstPaxEdit = false;
                        Permissions.OperationAttractionSupplierView = false;
                        Permissions.OperationAttractionSupplierEdit = false;
                        Permissions.OperationAttractionSupplierFilter = false;
                        Permissions.OperationAttractionDifferenceView = false;
                        Permissions.OperationAttractionDifferenceEdit = false;
                        Permissions.OperationAttractionDoneView = false;
                        Permissions.OperationAttractionDoneEdit = false;
                        Permissions.OperationAttractionDateView = false;
                        Permissions.OperationAttractionDateEdit = false;
                        Permissions.OperationAttractionTimeView = false;
                        Permissions.OperationAttractionTimeEdit = false;
                        Permissions.OperationAttractionCategoryView = false;
                        Permissions.OperationAttractionCategoryEdit = false;
                        Permissions.OperationAttractionCategoryFilter = false;
                        Permissions.OperationAttractionTypeView = false;
                        Permissions.OperationAttractionTypeEdit = false;
                        Permissions.OperationAttractionTypeFilter = false;
                        Permissions.OperationAttractionFirstPaymentView = false;
                        Permissions.OperationAttractionFirstPaymentEdit = false;
                        Permissions.OperationAttractionFirstPaymentMethodView = false;
                        Permissions.OperationAttractionFirstPaymentMethodEdit = false;
                        Permissions.OperationAttractionFirstPaymentDetailsView = false;
                        Permissions.OperationAttractionDateofFirstPaymentView = false;
                        Permissions.OperationAttractionDateofFirstPaymentEdit = false;
                        Permissions.OperationAttractionSecondPaymentView = false;
                        Permissions.OperationAttractionSecondPaymentEdit = false;
                        Permissions.OperationAttractionSecondPaymentMethodView = false;
                        Permissions.OperationAttractionSecondPaymentMethodEdit = false;
                        Permissions.OperationAttractionSecondPaymentDetailsView = false;
                        Permissions.OperationAttractionDateofSecondPaymentView = false;
                        Permissions.OperationAttractionDateofSecondPaymentEdit = false;
                        Permissions.OperationAttractionThirdPaymentView = false;
                        Permissions.OperationAttractionThirdPaymentEdit = false;
                        Permissions.OperationAttractionThirdPaymentMethodView = false;
                        Permissions.OperationAttractionThirdPaymentMethodEdit = false;
                        Permissions.OperationAttractionThirdPaymentDetailsView = false;
                        Permissions.OperationAttractionDateofThirdPaymentView = false;
                        Permissions.OperationAttractionDateofThirdPaymentEdit = false;
                        Permissions.OperationAttractionDepositView = false;
                        Permissions.OperationAttractionDepositEdit = false;
                        Permissions.OperationAttractionDepositDateView = false;
                        Permissions.OperationAttractionDepositDateEdit = false;
                        Permissions.OperationAttractionContactView = false;
                        Permissions.OperationAttractionContactEdit = false;
                        Permissions.OperationAttractionPhoneView = false;
                        Permissions.OperationAttractionPhoneEdit = false;
                        Permissions.OperationAttractionEmailView = false;
                        Permissions.OperationAttractionEmailEdit = false;
                        Permissions.OperationAttractionViewGroupContractView = false;
                        Permissions.OperationAttractionAddressView = false;
                        Permissions.OperationAttractionAddressEdit = false;
                        Permissions.OperationAttractionCityView = false;
                        Permissions.OperationAttractionCityEdit = false;
                        Permissions.OperationAttractionCityFilter = false;
                        Permissions.OperationAttractionStateView = false;
                        Permissions.OperationAttractionStateEdit = false;
                        Permissions.OperationAttractionStatusView = false;
                        Permissions.OperationAttractionStatusEdit = false;
                        Permissions.OperationAttractionStatusFilter = false;
                        Permissions.OperationAttractionCurrencyView = false;
                        Permissions.OperationAttractionCurrencyEdit = false;
                        Permissions.OperationAttractionQuotaPriceView = false;
                        Permissions.OperationAttractionQuotaPriceEdit = false;
                        Permissions.OperationAttractionQuotaSupplierView = false;
                        Permissions.OperationAttractionQuotaSupplierEdit = false;
                        Permissions.OperationAttractionTotalCostView = false;
                        Permissions.OperationAttractionTotalCostEdit = false;
                        Permissions.OperationAttractionTotalAmountPaidView = false;
                        Permissions.OperationAttractionTotalAmountPaidEdit = false;
                        Permissions.OperationAttractionUnitPriceView = false;
                        Permissions.OperationAttractionUnitPriceEdit = false;
                        Permissions.OperationAttractionMenuView = false;
                        Permissions.OperationAttractionMenuEdit = false;
                        Permissions.OperationAttractionFinalPaymentView = false;
                        Permissions.OperationAttractionFinalPaymentEdit = false;
                        Permissions.OperationAttractionDepositAmountPaidView = false;
                        Permissions.OperationAttractionDepositAmountPaidEdit = false;
                        Permissions.OperationAttractionCreditCardChargeAmountView = false;
                        Permissions.OperationAttractionCreditCardChargeAmountEdit = false;
                        Permissions.OperationAttractionCreditCardMemoView = false;
                        Permissions.OperationAttractionCreditCardMemoEdit = false;
                        Permissions.OperationAttractionOutstandingAmountView = false;
                        Permissions.OperationAttractionOutstandingAmountEdit = false;
                        Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = false;
                        Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = false;
                    }
                    else
                    {
                        if (!OperationAttractionsColumns.Any(perm => perm == null))
                        {
                            if (OperationAttractionsColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationAttractionFixedColumnCount = OperationAttractions.PermFixCol != null ? Convert.ToInt32(OperationAttractions.PermFixCol) : 0;
                                foreach (var attraction in OperationAttractionsColumns)
                                {
                                    switch (attraction.PerColumnName)
                                    {
                                        case "Is Guide Invoice":
                                            {
                                                Permissions.OperationAttractionIsGuideInvoiceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionIsGuideInvoiceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionIsGuideInvoiceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Invoice Price":
                                            {
                                                Permissions.OperationAttractionGuideInvoicePriceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionGuideInvoicePriceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionGuideInvoicePriceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Is Invoice":
                                            {
                                                Permissions.OperationAttractionIsInvoiceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionIsInvoiceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionIsInvoiceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Invoice Price":
                                            {
                                                Permissions.OperationAttractionInvoicePriceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionInvoicePriceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionInvoicePriceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Optional":
                                            {
                                                Permissions.OperationAttractionOptionalView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionOptionalLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Code":
                                            {
                                                Permissions.OperationAttractionGroupCodeView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionGroupCodeEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionGroupCodeFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionGroupCodeLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Name":
                                            {
                                                Permissions.OperationAttractionGroupNameView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionGroupNameEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionGroupNameFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionGroupNameLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Details":
                                            {
                                                Permissions.OperationAttractionDetailsView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDetailsLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationAttractionCustomerView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCustomerEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCustomerFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionCustomerLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Employee":
                                            {
                                                Permissions.OperationAttractionEmployeeView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionEmployeeEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionEmployeeLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationAttractionPaxView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionPaxEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionPaxLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Est. Pax":
                                            {
                                                Permissions.OperationAttractionEstPaxView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionEstPaxEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionEstPaxLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Supplier":
                                            {
                                                Permissions.OperationAttractionSupplierView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionSupplierEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionSupplierFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionSupplierLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Difference":
                                            {
                                                Permissions.OperationAttractionDifferenceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDifferenceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDifferenceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Done":
                                            {
                                                Permissions.OperationAttractionDoneView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDoneEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDoneLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date":
                                            {
                                                Permissions.OperationAttractionDateView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDateEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDateLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Time":
                                            {
                                                Permissions.OperationAttractionTimeView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionTimeEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionTimeLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Category":
                                            {
                                                Permissions.OperationAttractionCategoryView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCategoryEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCategoryFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionCategoryLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Type":
                                            {
                                                Permissions.OperationAttractionTypeView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionTypeEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionTypeFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionTypeLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment":
                                            {
                                                Permissions.OperationAttractionFirstPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionFirstPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionFirstPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment Method":
                                            {
                                                Permissions.OperationAttractionFirstPaymentMethodView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionFirstPaymentMethodEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionFirstPaymentMethodLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 1 Details":
                                            {
                                                Permissions.OperationAttractionFirstPaymentDetailsView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionFirstPaymentDetailsLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 1st Payment":
                                            {
                                                Permissions.OperationAttractionDateofFirstPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDateofFirstPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDateofFirstPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment":
                                            {
                                                Permissions.OperationAttractionSecondPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionSecondPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionSecondPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment Method":
                                            {
                                                Permissions.OperationAttractionSecondPaymentMethodView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionSecondPaymentMethodEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionSecondPaymentMethodLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 2 Details":
                                            {
                                                Permissions.OperationAttractionSecondPaymentDetailsView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionSecondPaymentDetailsLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 2nd Payment":
                                            {
                                                Permissions.OperationAttractionDateofSecondPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDateofSecondPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDateofSecondPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment":
                                            {
                                                Permissions.OperationAttractionThirdPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionThirdPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionThirdPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment Method":
                                            {
                                                Permissions.OperationAttractionThirdPaymentMethodView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionThirdPaymentMethodEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionThirdPaymentMethodLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 3 Details":
                                            {
                                                Permissions.OperationAttractionThirdPaymentDetailsView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionThirdPaymentDetailsLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 3rd Payment":
                                            {
                                                Permissions.OperationAttractionDateofThirdPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDateofThirdPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDateofThirdPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Deposit":
                                            {
                                                Permissions.OperationAttractionDepositView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDepositEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDepositLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Deposit Date":
                                            {
                                                Permissions.OperationAttractionDepositDateView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDepositDateEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDepositDateLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Contact":
                                            {
                                                Permissions.OperationAttractionContactView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionContactEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionContactLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Phone":
                                            {
                                                Permissions.OperationAttractionPhoneView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionPhoneEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionPhoneLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Email":
                                            {
                                                Permissions.OperationAttractionEmailView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionEmailEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionEmailLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "View Group Contract":
                                            {
                                                Permissions.OperationAttractionViewGroupContractView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionViewGroupContractLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Address":
                                            {
                                                Permissions.OperationAttractionAddressView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionAddressEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionAddressLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "City":
                                            {
                                                Permissions.OperationAttractionCityView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCityEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCityFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionCityLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "State":
                                            {
                                                Permissions.OperationAttractionStateView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionStateEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionStateLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Status":
                                            {
                                                Permissions.OperationAttractionStatusView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionStatusEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionStatusFilter = attraction.PerHasFilter != null ? Convert.ToBoolean(attraction.PerHasFilter) : false;
                                                Permissions.OperationAttractionStatusLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Currency":
                                            {
                                                Permissions.OperationAttractionCurrencyView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCurrencyEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCurrencyLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Price":
                                            {
                                                Permissions.OperationAttractionQuotaPriceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionQuotaPriceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionQuotaPriceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Supplier":
                                            {
                                                Permissions.OperationAttractionQuotaSupplierView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionQuotaSupplierEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionQuotaSupplierLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationAttractionTotalCostView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionTotalCostEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionTotalCostLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Amount Paid":
                                            {
                                                Permissions.OperationAttractionTotalAmountPaidView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionTotalAmountPaidEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionTotalAmountPaidLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Unit Price":
                                            {
                                                Permissions.OperationAttractionUnitPriceView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionUnitPriceEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionUnitPriceLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Menu":
                                            {
                                                Permissions.OperationAttractionMenuView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionMenuEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionMenuLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Final Payment":
                                            {
                                                Permissions.OperationAttractionFinalPaymentView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionFinalPaymentEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionFinalPaymentLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Deposit Amount Paid":
                                            {
                                                Permissions.OperationAttractionDepositAmountPaidView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDepositAmountPaidEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDepositAmountPaidLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Credit Card Charge Amount":
                                            {
                                                Permissions.OperationAttractionCreditCardChargeAmountView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCreditCardChargeAmountEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCreditCardChargeAmountLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Credit Card Memo":
                                            {
                                                Permissions.OperationAttractionCreditCardMemoView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionCreditCardMemoEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionCreditCardMemoLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Outstanding Amount":
                                            {
                                                Permissions.OperationAttractionOutstandingAmountView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionOutstandingAmountEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionOutstandingAmountLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Difference TotalPaid TotalCharged":
                                            {
                                                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = attraction.PerColumnView != null ? Convert.ToBoolean(attraction.PerColumnView) : false;
                                                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = attraction.PerColumnEdit != null ? Convert.ToBoolean(attraction.PerColumnEdit) : false;
                                                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedLineNo = attraction.PerColumnLineNo != null ? Convert.ToInt32(attraction.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationAttractionFixedColumnCount = 0;
                                Permissions.OperationAttractionIsGuideInvoiceView = false;
                                Permissions.OperationAttractionIsGuideInvoiceEdit = false;
                                Permissions.OperationAttractionGuideInvoicePriceView = false;
                                Permissions.OperationAttractionGuideInvoicePriceEdit = false;
                                Permissions.OperationAttractionIsInvoiceView = false;
                                Permissions.OperationAttractionIsInvoiceEdit = false;
                                Permissions.OperationAttractionInvoicePriceView = false;
                                Permissions.OperationAttractionInvoicePriceEdit = false;
                                Permissions.OperationAttractionOptionalView = false;
                                Permissions.OperationAttractionGroupCodeView = false;
                                Permissions.OperationAttractionGroupCodeEdit = false;
                                Permissions.OperationAttractionGroupCodeFilter = false;
                                Permissions.OperationAttractionGroupNameView = false;
                                Permissions.OperationAttractionGroupNameEdit = false;
                                Permissions.OperationAttractionGroupNameFilter = false;
                                Permissions.OperationAttractionDetailsView = false;
                                Permissions.OperationAttractionCustomerView = false;
                                Permissions.OperationAttractionCustomerEdit = false;
                                Permissions.OperationAttractionCustomerFilter = false;
                                Permissions.OperationAttractionPaxView = false;
                                Permissions.OperationAttractionPaxEdit = false;
                                Permissions.OperationAttractionEmployeeView = false;
                                Permissions.OperationAttractionEmployeeEdit = false;
                                Permissions.OperationAttractionEstPaxView = false;
                                Permissions.OperationAttractionEstPaxEdit = false;
                                Permissions.OperationAttractionSupplierView = false;
                                Permissions.OperationAttractionSupplierEdit = false;
                                Permissions.OperationAttractionSupplierFilter = false;
                                Permissions.OperationAttractionDifferenceView = false;
                                Permissions.OperationAttractionDifferenceEdit = false;
                                Permissions.OperationAttractionDoneView = false;
                                Permissions.OperationAttractionDoneEdit = false;
                                Permissions.OperationAttractionDateView = false;
                                Permissions.OperationAttractionDateEdit = false;
                                Permissions.OperationAttractionTimeView = false;
                                Permissions.OperationAttractionTimeEdit = false;
                                Permissions.OperationAttractionCategoryView = false;
                                Permissions.OperationAttractionCategoryEdit = false;
                                Permissions.OperationAttractionCategoryFilter = false;
                                Permissions.OperationAttractionTypeView = false;
                                Permissions.OperationAttractionTypeEdit = false;
                                Permissions.OperationAttractionTypeFilter = false;
                                Permissions.OperationAttractionFirstPaymentView = false;
                                Permissions.OperationAttractionFirstPaymentEdit = false;
                                Permissions.OperationAttractionFirstPaymentMethodView = false;
                                Permissions.OperationAttractionFirstPaymentMethodEdit = false;
                                Permissions.OperationAttractionFirstPaymentDetailsView = false;
                                Permissions.OperationAttractionDateofFirstPaymentView = false;
                                Permissions.OperationAttractionDateofFirstPaymentEdit = false;
                                Permissions.OperationAttractionSecondPaymentView = false;
                                Permissions.OperationAttractionSecondPaymentEdit = false;
                                Permissions.OperationAttractionSecondPaymentMethodView = false;
                                Permissions.OperationAttractionSecondPaymentMethodEdit = false;
                                Permissions.OperationAttractionSecondPaymentDetailsView = false;
                                Permissions.OperationAttractionDateofSecondPaymentView = false;
                                Permissions.OperationAttractionDateofSecondPaymentEdit = false;
                                Permissions.OperationAttractionThirdPaymentView = false;
                                Permissions.OperationAttractionThirdPaymentEdit = false;
                                Permissions.OperationAttractionThirdPaymentMethodView = false;
                                Permissions.OperationAttractionThirdPaymentMethodEdit = false;
                                Permissions.OperationAttractionThirdPaymentDetailsView = false;
                                Permissions.OperationAttractionDateofThirdPaymentView = false;
                                Permissions.OperationAttractionDateofThirdPaymentEdit = false;
                                Permissions.OperationAttractionDepositView = false;
                                Permissions.OperationAttractionDepositEdit = false;
                                Permissions.OperationAttractionDepositDateView = false;
                                Permissions.OperationAttractionDepositDateEdit = false;
                                Permissions.OperationAttractionContactView = false;
                                Permissions.OperationAttractionContactEdit = false;
                                Permissions.OperationAttractionPhoneView = false;
                                Permissions.OperationAttractionPhoneEdit = false;
                                Permissions.OperationAttractionEmailView = false;
                                Permissions.OperationAttractionEmailEdit = false;
                                Permissions.OperationAttractionViewGroupContractView = false;
                                Permissions.OperationAttractionAddressView = false;
                                Permissions.OperationAttractionAddressEdit = false;
                                Permissions.OperationAttractionCityView = false;
                                Permissions.OperationAttractionCityEdit = false;
                                Permissions.OperationAttractionCityFilter = false;
                                Permissions.OperationAttractionStateView = false;
                                Permissions.OperationAttractionStateEdit = false;
                                Permissions.OperationAttractionStatusView = false;
                                Permissions.OperationAttractionStatusEdit = false;
                                Permissions.OperationAttractionStatusFilter = false;
                                Permissions.OperationAttractionCurrencyView = false;
                                Permissions.OperationAttractionCurrencyEdit = false;
                                Permissions.OperationAttractionQuotaPriceView = false;
                                Permissions.OperationAttractionQuotaPriceEdit = false;
                                Permissions.OperationAttractionQuotaSupplierView = false;
                                Permissions.OperationAttractionQuotaSupplierEdit = false;
                                Permissions.OperationAttractionTotalCostView = false;
                                Permissions.OperationAttractionTotalCostEdit = false;
                                Permissions.OperationAttractionTotalAmountPaidView = false;
                                Permissions.OperationAttractionTotalAmountPaidEdit = false;
                                Permissions.OperationAttractionUnitPriceView = false;
                                Permissions.OperationAttractionUnitPriceEdit = false;
                                Permissions.OperationAttractionMenuView = false;
                                Permissions.OperationAttractionMenuEdit = false;
                                Permissions.OperationAttractionFinalPaymentView = false;
                                Permissions.OperationAttractionFinalPaymentEdit = false;
                                Permissions.OperationAttractionDepositAmountPaidView = false;
                                Permissions.OperationAttractionDepositAmountPaidEdit = false;
                                Permissions.OperationAttractionCreditCardChargeAmountView = false;
                                Permissions.OperationAttractionCreditCardChargeAmountEdit = false;
                                Permissions.OperationAttractionCreditCardMemoView = false;
                                Permissions.OperationAttractionCreditCardMemoEdit = false;
                                Permissions.OperationAttractionOutstandingAmountView = false;
                                Permissions.OperationAttractionOutstandingAmountEdit = false;
                                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = false;
                                Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationAttractionFixedColumnCount = 0;
                            Permissions.OperationAttractionIsGuideInvoiceView = false;
                            Permissions.OperationAttractionIsGuideInvoiceEdit = false;
                            Permissions.OperationAttractionGuideInvoicePriceView = false;
                            Permissions.OperationAttractionGuideInvoicePriceEdit = false;
                            Permissions.OperationAttractionIsInvoiceView = false;
                            Permissions.OperationAttractionIsInvoiceEdit = false;
                            Permissions.OperationAttractionInvoicePriceView = false;
                            Permissions.OperationAttractionInvoicePriceEdit = false;
                            Permissions.OperationAttractionOptionalView = false;
                            Permissions.OperationAttractionGroupCodeView = false;
                            Permissions.OperationAttractionGroupCodeEdit = false;
                            Permissions.OperationAttractionGroupCodeFilter = false;
                            Permissions.OperationAttractionGroupNameView = false;
                            Permissions.OperationAttractionGroupNameEdit = false;
                            Permissions.OperationAttractionGroupNameFilter = false;
                            Permissions.OperationAttractionDetailsView = false;
                            Permissions.OperationAttractionCustomerView = false;
                            Permissions.OperationAttractionCustomerEdit = false;
                            Permissions.OperationAttractionCustomerFilter = false;
                            Permissions.OperationAttractionPaxView = false;
                            Permissions.OperationAttractionPaxEdit = false;
                            Permissions.OperationAttractionEmployeeView = false;
                            Permissions.OperationAttractionEmployeeEdit = false;
                            Permissions.OperationAttractionEstPaxView = false;
                            Permissions.OperationAttractionEstPaxEdit = false;
                            Permissions.OperationAttractionSupplierView = false;
                            Permissions.OperationAttractionSupplierEdit = false;
                            Permissions.OperationAttractionSupplierFilter = false;
                            Permissions.OperationAttractionDifferenceView = false;
                            Permissions.OperationAttractionDifferenceEdit = false;
                            Permissions.OperationAttractionDoneView = false;
                            Permissions.OperationAttractionDoneEdit = false;
                            Permissions.OperationAttractionDateView = false;
                            Permissions.OperationAttractionDateEdit = false;
                            Permissions.OperationAttractionTimeView = false;
                            Permissions.OperationAttractionTimeEdit = false;
                            Permissions.OperationAttractionCategoryView = false;
                            Permissions.OperationAttractionCategoryEdit = false;
                            Permissions.OperationAttractionCategoryFilter = false;
                            Permissions.OperationAttractionTypeView = false;
                            Permissions.OperationAttractionTypeEdit = false;
                            Permissions.OperationAttractionTypeFilter = false;
                            Permissions.OperationAttractionFirstPaymentView = false;
                            Permissions.OperationAttractionFirstPaymentEdit = false;
                            Permissions.OperationAttractionFirstPaymentMethodView = false;
                            Permissions.OperationAttractionFirstPaymentMethodEdit = false;
                            Permissions.OperationAttractionFirstPaymentDetailsView = false;
                            Permissions.OperationAttractionDateofFirstPaymentView = false;
                            Permissions.OperationAttractionDateofFirstPaymentEdit = false;
                            Permissions.OperationAttractionSecondPaymentView = false;
                            Permissions.OperationAttractionSecondPaymentEdit = false;
                            Permissions.OperationAttractionSecondPaymentMethodView = false;
                            Permissions.OperationAttractionSecondPaymentMethodEdit = false;
                            Permissions.OperationAttractionSecondPaymentDetailsView = false;
                            Permissions.OperationAttractionDateofSecondPaymentView = false;
                            Permissions.OperationAttractionDateofSecondPaymentEdit = false;
                            Permissions.OperationAttractionThirdPaymentView = false;
                            Permissions.OperationAttractionThirdPaymentEdit = false;
                            Permissions.OperationAttractionThirdPaymentMethodView = false;
                            Permissions.OperationAttractionThirdPaymentMethodEdit = false;
                            Permissions.OperationAttractionThirdPaymentDetailsView = false;
                            Permissions.OperationAttractionDateofThirdPaymentView = false;
                            Permissions.OperationAttractionDateofThirdPaymentEdit = false;
                            Permissions.OperationAttractionDepositView = false;
                            Permissions.OperationAttractionDepositEdit = false;
                            Permissions.OperationAttractionDepositDateView = false;
                            Permissions.OperationAttractionDepositDateEdit = false;
                            Permissions.OperationAttractionContactView = false;
                            Permissions.OperationAttractionContactEdit = false;
                            Permissions.OperationAttractionPhoneView = false;
                            Permissions.OperationAttractionPhoneEdit = false;
                            Permissions.OperationAttractionEmailView = false;
                            Permissions.OperationAttractionEmailEdit = false;
                            Permissions.OperationAttractionViewGroupContractView = false;
                            Permissions.OperationAttractionAddressView = false;
                            Permissions.OperationAttractionAddressEdit = false;
                            Permissions.OperationAttractionCityView = false;
                            Permissions.OperationAttractionCityEdit = false;
                            Permissions.OperationAttractionCityFilter = false;
                            Permissions.OperationAttractionStateView = false;
                            Permissions.OperationAttractionStateEdit = false;
                            Permissions.OperationAttractionStatusView = false;
                            Permissions.OperationAttractionStatusEdit = false;
                            Permissions.OperationAttractionStatusFilter = false;
                            Permissions.OperationAttractionCurrencyView = false;
                            Permissions.OperationAttractionCurrencyEdit = false;
                            Permissions.OperationAttractionQuotaPriceView = false;
                            Permissions.OperationAttractionQuotaPriceEdit = false;
                            Permissions.OperationAttractionQuotaSupplierView = false;
                            Permissions.OperationAttractionQuotaSupplierEdit = false;
                            Permissions.OperationAttractionTotalCostView = false;
                            Permissions.OperationAttractionTotalCostEdit = false;
                            Permissions.OperationAttractionTotalAmountPaidView = false;
                            Permissions.OperationAttractionTotalAmountPaidEdit = false;
                            Permissions.OperationAttractionUnitPriceView = false;
                            Permissions.OperationAttractionUnitPriceEdit = false;
                            Permissions.OperationAttractionMenuView = false;
                            Permissions.OperationAttractionMenuEdit = false;
                            Permissions.OperationAttractionFinalPaymentView = false;
                            Permissions.OperationAttractionFinalPaymentEdit = false;
                            Permissions.OperationAttractionDepositAmountPaidView = false;
                            Permissions.OperationAttractionDepositAmountPaidEdit = false;
                            Permissions.OperationAttractionCreditCardChargeAmountView = false;
                            Permissions.OperationAttractionCreditCardChargeAmountEdit = false;
                            Permissions.OperationAttractionCreditCardMemoView = false;
                            Permissions.OperationAttractionCreditCardMemoEdit = false;
                            Permissions.OperationAttractionOutstandingAmountView = false;
                            Permissions.OperationAttractionOutstandingAmountEdit = false;
                            Permissions.OperationAttractionDifferenceTotalPaidTotalChargedView = false;
                            Permissions.OperationAttractionDifferenceTotalPaidTotalChargedEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationMisc = (from misc in Operation where misc.ToolTabID == 28 select misc).SingleOrDefault();
                if (OperationMisc == null)
                {
                    Permissions.OperationMiscFixedColumnCount = 0;
                    Permissions.OperationMiscPlaneView = false;
                    Permissions.OperationMiscPlaneEdit = false;
                    Permissions.OperationMiscIsCompView = false;
                    Permissions.OperationMiscIsCompEdit = false;
                    Permissions.OperationMiscGroupCodeView = false;
                    Permissions.OperationMiscGroupCodeEdit = false;
                    Permissions.OperationMiscGroupCodeFilter = false;
                    Permissions.OperationMiscGroupNameView = false;
                    Permissions.OperationMiscGroupNameEdit = false;
                    Permissions.OperationMiscGroupNameFilter = false;
                    Permissions.OperationMiscDetailsView = false;
                    Permissions.OperationMiscCustomerView = false;
                    Permissions.OperationMiscCustomerEdit = false;
                    Permissions.OperationMiscCustomerFilter = false;
                    Permissions.OperationMiscEmployeeView = false;
                    Permissions.OperationMiscEmployeeEdit = false;
                    Permissions.OperationMiscPaxView = false;
                    Permissions.OperationMiscPaxEdit = false;
                    Permissions.OperationMiscEstPaxView = false;
                    Permissions.OperationMiscEstPaxEdit = false;
                    Permissions.OperationMiscSupplierView = false;
                    Permissions.OperationMiscSupplierEdit = false;
                    Permissions.OperationMiscSupplierFilter = false;
                    Permissions.OperationMiscDateView = false;
                    Permissions.OperationMiscDateEdit = false;
                    Permissions.OperationMiscTimeView = false;
                    Permissions.OperationMiscTimeEdit = false;
                    Permissions.OperationMiscServiceDetailView = false;
                    Permissions.OperationMiscServiceDetailEdit = false;
                    Permissions.OperationMiscContactView = false;
                    Permissions.OperationMiscContactEdit = false;
                    Permissions.OperationMiscPhoneView = false;
                    Permissions.OperationMiscPhoneEdit = false;
                    Permissions.OperationMiscEmailView = false;
                    Permissions.OperationMiscEmailEdit = false;
                    Permissions.OperationMiscViewGroupContractView = false;
                    Permissions.OperationMiscAddressView = false;
                    Permissions.OperationMiscAddressEdit = false;
                    Permissions.OperationMiscCityView = false;
                    Permissions.OperationMiscCityEdit = false;
                    Permissions.OperationMiscCityFilter = false;
                    Permissions.OperationMiscStatusView = false;
                    Permissions.OperationMiscStatusEdit = false;
                    Permissions.OperationMiscStatusFilter = false;
                    Permissions.OperationMiscUnitPriceView = false;
                    Permissions.OperationMiscUnitPriceEdit = false;
                    Permissions.OperationMiscUnitPricePGView = false;
                    Permissions.OperationMiscUnitPricePGEdit = false;
                    Permissions.OperationMiscDiffView = false;
                    Permissions.OperationMiscDiffEdit = false;
                    Permissions.OperationMiscPGDiffView = false;
                    Permissions.OperationMiscPGDiffEdit = false;
                    Permissions.OperationMiscTotalAmountPaidView = false;
                    Permissions.OperationMiscTotalAmountPaidEdit = false;
                    Permissions.OperationMiscTotalAmountCostView = false;
                    Permissions.OperationMiscTotalAmountCostEdit = false;
                    Permissions.OperationMiscTotalOutAmountView = false;
                    Permissions.OperationMiscTotalOutAmountEdit = false;
                    Permissions.OperationMiscCurrencyView = false;
                    Permissions.OperationMiscCurrencyEdit = false;
                    Permissions.OperationMiscFirstPaymentView = false;
                    Permissions.OperationMiscFirstPaymentEdit = false;
                    Permissions.OperationMiscFirstPaymentMethodView = false;
                    Permissions.OperationMiscFirstPaymentMethodEdit = false;
                    Permissions.OperationMiscFirstPaymentDetailsView = false;
                    Permissions.OperationMiscDateofFirstPaymentView = false;
                    Permissions.OperationMiscDateofFirstPaymentEdit = false;
                    Permissions.OperationMiscSecondPaymentView = false;
                    Permissions.OperationMiscSecondPaymentEdit = false;
                    Permissions.OperationMiscSecondPaymentMethodView = false;
                    Permissions.OperationMiscSecondPaymentMethodEdit = false;
                    Permissions.OperationMiscSecondPaymentDetailsView = false;
                    Permissions.OperationMiscDateofSecondPaymentView = false;
                    Permissions.OperationMiscDateofSecondPaymentEdit = false;
                    Permissions.OperationMiscThirdPaymentView = false;
                    Permissions.OperationMiscThirdPaymentEdit = false;
                    Permissions.OperationMiscThirdPaymentMethodView = false;
                    Permissions.OperationMiscThirdPaymentMethodEdit = false;
                    Permissions.OperationMiscThirdPaymentDetailsView = false;
                    Permissions.OperationMiscDateofThirdPaymentView = false;
                    Permissions.OperationMiscDateofThirdPaymentEdit = false;
                    Permissions.OperationMiscQuotaPriceView = false;
                    Permissions.OperationMiscQuotaPriceEdit = false;
                    Permissions.OperationMiscQuotaPerGroupPriceView = false;
                    Permissions.OperationMiscQuotaPerGroupPriceEdit = false;
                    Permissions.OperationMiscQuotaSupplierView = false;
                    Permissions.OperationMiscQuotaSupplierEdit = false;
                    Permissions.OperationMiscNotesView = false;
                    Permissions.OperationMiscNotesEdit = false;
                }
                else
                {
                    var OperationMiscColumns = (from misccolumn in OperationMisc.ToolTabColumns select misccolumn.Permisionss).ToList();
                    if (OperationMiscColumns == null)
                    {
                        Permissions.OperationMiscFixedColumnCount = 0;
                        Permissions.OperationMiscPlaneView = false;
                        Permissions.OperationMiscPlaneEdit = false;
                        Permissions.OperationMiscIsCompView = false;
                        Permissions.OperationMiscIsCompEdit = false;
                        Permissions.OperationMiscGroupCodeView = false;
                        Permissions.OperationMiscGroupCodeEdit = false;
                        Permissions.OperationMiscGroupCodeFilter = false;
                        Permissions.OperationMiscGroupNameView = false;
                        Permissions.OperationMiscGroupNameEdit = false;
                        Permissions.OperationMiscGroupNameFilter = false;
                        Permissions.OperationMiscDetailsView = false;
                        Permissions.OperationMiscCustomerView = false;
                        Permissions.OperationMiscCustomerEdit = false;
                        Permissions.OperationMiscCustomerFilter = false;
                        Permissions.OperationMiscEmployeeView = false;
                        Permissions.OperationMiscEmployeeEdit = false;
                        Permissions.OperationMiscPaxView = false;
                        Permissions.OperationMiscPaxEdit = false;
                        Permissions.OperationMiscEstPaxView = false;
                        Permissions.OperationMiscEstPaxEdit = false;
                        Permissions.OperationMiscSupplierView = false;
                        Permissions.OperationMiscSupplierEdit = false;
                        Permissions.OperationMiscSupplierFilter = false;
                        Permissions.OperationMiscDateView = false;
                        Permissions.OperationMiscDateEdit = false;
                        Permissions.OperationMiscTimeView = false;
                        Permissions.OperationMiscTimeEdit = false;
                        Permissions.OperationMiscServiceDetailView = false;
                        Permissions.OperationMiscServiceDetailEdit = false;
                        Permissions.OperationMiscContactView = false;
                        Permissions.OperationMiscContactEdit = false;
                        Permissions.OperationMiscPhoneView = false;
                        Permissions.OperationMiscPhoneEdit = false;
                        Permissions.OperationMiscEmailView = false;
                        Permissions.OperationMiscEmailEdit = false;
                        Permissions.OperationMiscViewGroupContractView = false;
                        Permissions.OperationMiscAddressView = false;
                        Permissions.OperationMiscAddressEdit = false;
                        Permissions.OperationMiscCityView = false;
                        Permissions.OperationMiscCityEdit = false;
                        Permissions.OperationMiscCityFilter = false;
                        Permissions.OperationMiscStatusView = false;
                        Permissions.OperationMiscStatusEdit = false;
                        Permissions.OperationMiscStatusFilter = false;
                        Permissions.OperationMiscUnitPriceView = false;
                        Permissions.OperationMiscUnitPriceEdit = false;
                        Permissions.OperationMiscUnitPriceView = false;
                        Permissions.OperationMiscUnitPricePGEdit = false;
                        Permissions.OperationMiscDiffView = false;
                        Permissions.OperationMiscDiffEdit = false;
                        Permissions.OperationMiscPGDiffView = false;
                        Permissions.OperationMiscPGDiffEdit = false;
                        Permissions.OperationMiscTotalAmountPaidView = false;
                        Permissions.OperationMiscTotalAmountPaidEdit = false;
                        Permissions.OperationMiscTotalAmountCostView = false;
                        Permissions.OperationMiscTotalAmountCostEdit = false;
                        Permissions.OperationMiscTotalOutAmountView = false;
                        Permissions.OperationMiscTotalOutAmountEdit = false;
                        Permissions.OperationMiscCurrencyView = false;
                        Permissions.OperationMiscCurrencyEdit = false;
                        Permissions.OperationMiscFirstPaymentView = false;
                        Permissions.OperationMiscFirstPaymentEdit = false;
                        Permissions.OperationMiscFirstPaymentMethodView = false;
                        Permissions.OperationMiscFirstPaymentMethodEdit = false;
                        Permissions.OperationMiscFirstPaymentDetailsView = false;
                        Permissions.OperationMiscDateofFirstPaymentView = false;
                        Permissions.OperationMiscDateofFirstPaymentEdit = false;
                        Permissions.OperationMiscSecondPaymentView = false;
                        Permissions.OperationMiscSecondPaymentEdit = false;
                        Permissions.OperationMiscSecondPaymentMethodView = false;
                        Permissions.OperationMiscSecondPaymentMethodEdit = false;
                        Permissions.OperationMiscSecondPaymentDetailsView = false;
                        Permissions.OperationMiscDateofSecondPaymentView = false;
                        Permissions.OperationMiscDateofSecondPaymentEdit = false;
                        Permissions.OperationMiscThirdPaymentView = false;
                        Permissions.OperationMiscThirdPaymentEdit = false;
                        Permissions.OperationMiscThirdPaymentMethodView = false;
                        Permissions.OperationMiscThirdPaymentMethodEdit = false;
                        Permissions.OperationMiscThirdPaymentDetailsView = false;
                        Permissions.OperationMiscDateofThirdPaymentView = false;
                        Permissions.OperationMiscDateofThirdPaymentEdit = false;
                        Permissions.OperationMiscQuotaPriceView = false;
                        Permissions.OperationMiscQuotaPriceEdit = false;
                        Permissions.OperationMiscQuotaPerGroupPriceView = false;
                        Permissions.OperationMiscQuotaPerGroupPriceEdit = false;
                        Permissions.OperationMiscQuotaSupplierView = false;
                        Permissions.OperationMiscQuotaSupplierEdit = false;
                        Permissions.OperationMiscNotesView = false;
                        Permissions.OperationMiscNotesEdit = false;
                    }
                    else
                    {
                        if (!OperationMiscColumns.Any(perm => perm == null))
                        {
                            if (OperationMiscColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationMiscFixedColumnCount = OperationMisc.PermFixCol != null ? Convert.ToInt32(OperationMisc.PermFixCol) : 0;
                                foreach (var misc in OperationMiscColumns)
                                {
                                    switch (misc.PerColumnName)
                                    {
                                        case "Flight":
                                            {
                                                Permissions.OperationMiscPlaneView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscPlaneEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscPlaneLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Is Comp":
                                            {
                                                Permissions.OperationMiscIsCompView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscIsCompEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscIsCompLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Code":
                                            {
                                                Permissions.OperationMiscGroupCodeView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscGroupCodeEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscGroupCodeFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscGroupCodeLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Name":
                                            {
                                                Permissions.OperationMiscGroupNameView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscGroupNameEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscGroupNameFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscGroupNameLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Details":
                                            {
                                                Permissions.OperationMiscDetailsView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDetailsLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationMiscCustomerView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscCustomerEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscCustomerFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscCustomerLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Employee":
                                            {
                                                Permissions.OperationMiscEmployeeView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscEmployeeEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscEmployeeLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationMiscPaxView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscPaxEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscPaxLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Est. Pax":
                                            {
                                                Permissions.OperationMiscEstPaxView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscEstPaxEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscEstPaxLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Supplier":
                                            {
                                                Permissions.OperationMiscSupplierView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscSupplierEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscSupplierFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscSupplierLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date":
                                            {
                                                Permissions.OperationMiscDateView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDateEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscDateLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Time":
                                            {
                                                Permissions.OperationMiscTimeView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscTimeEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscTimeLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Service Detail":
                                            {
                                                Permissions.OperationMiscServiceDetailView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscServiceDetailEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscServiceDetailLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Contact":
                                            {
                                                Permissions.OperationMiscContactView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscContactEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscContactLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Phone":
                                            {
                                                Permissions.OperationMiscPhoneView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscPhoneEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscPhoneLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Email":
                                            {
                                                Permissions.OperationMiscEmailView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscEmailEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscEmailLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "View Group Contract":
                                            {
                                                Permissions.OperationMiscViewGroupContractView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscViewGroupContractLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Address":
                                            {
                                                Permissions.OperationMiscAddressView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscAddressEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscAddressLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "City":
                                            {
                                                Permissions.OperationMiscCityView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscCityEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscCityFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscCityLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Status":
                                            {
                                                Permissions.OperationMiscStatusView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscStatusEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscStatusFilter = misc.PerHasFilter != null ? Convert.ToBoolean(misc.PerHasFilter) : false;
                                                Permissions.OperationMiscStatusLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Unit Price P/P":
                                            {
                                                Permissions.OperationMiscUnitPriceView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscUnitPriceEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscUnitPriceLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Unit Price P/G":
                                            {
                                                Permissions.OperationMiscUnitPricePGView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscUnitPricePGEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscUnitPricePGLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "P/P Diff":
                                            {
                                                Permissions.OperationMiscDiffView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDiffEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscDiffLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "P/G Diff":
                                            {
                                                Permissions.OperationMiscPGDiffView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscPGDiffEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscPGDiffLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Currency":
                                            {
                                                Permissions.OperationMiscCurrencyView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscCurrencyEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscCurrencyLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Amount Paid":
                                            {
                                                Permissions.OperationMiscTotalAmountPaidView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscTotalAmountPaidEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscTotalAmountPaidLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Outstanding Amount":
                                            {
                                                Permissions.OperationMiscTotalOutAmountView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscTotalOutAmountEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscTotalOutAmountLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationMiscTotalAmountCostView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscTotalAmountCostEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscTotalAmountCostLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment":
                                            {
                                                Permissions.OperationMiscFirstPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscFirstPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscFirstPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment Method":
                                            {
                                                Permissions.OperationMiscFirstPaymentMethodView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscFirstPaymentMethodEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscFirstPaymentMethodLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 1 Details":
                                            {
                                                Permissions.OperationMiscFirstPaymentDetailsView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscFirstPaymentDetailsLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 1st Payment":
                                            {
                                                Permissions.OperationMiscDateofFirstPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDateofFirstPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscDateofFirstPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment":
                                            {
                                                Permissions.OperationMiscSecondPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscSecondPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscSecondPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment Method":
                                            {
                                                Permissions.OperationMiscSecondPaymentMethodView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscSecondPaymentMethodEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscSecondPaymentMethodLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 2 Details":
                                            {
                                                Permissions.OperationMiscSecondPaymentDetailsView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscSecondPaymentDetailsLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 2nd Payment":
                                            {
                                                Permissions.OperationMiscDateofSecondPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDateofSecondPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscDateofSecondPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment":
                                            {
                                                Permissions.OperationMiscThirdPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscThirdPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscThirdPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment Method":
                                            {
                                                Permissions.OperationMiscThirdPaymentMethodView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscThirdPaymentMethodEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscThirdPaymentMethodLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 3 Details":
                                            {
                                                Permissions.OperationMiscThirdPaymentDetailsView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscThirdPaymentDetailsLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 3rd Payment":
                                            {
                                                Permissions.OperationMiscDateofThirdPaymentView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscDateofThirdPaymentEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscDateofThirdPaymentLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Price":
                                            {
                                                Permissions.OperationMiscQuotaPriceView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscQuotaPriceEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscQuotaPriceLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Price P/G":
                                            {
                                                Permissions.OperationMiscQuotaPerGroupPriceView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscQuotaPerGroupPriceEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscQuotaPerGroupPriceLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Supplier":
                                            {
                                                Permissions.OperationMiscQuotaSupplierView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscQuotaSupplierEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscQuotaSupplierLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Notes":
                                            {
                                                Permissions.OperationMiscNotesView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                                Permissions.OperationMiscNotesEdit = misc.PerColumnEdit != null ? Convert.ToBoolean(misc.PerColumnEdit) : false;
                                                Permissions.OperationMiscNotesLineNo = misc.PerColumnLineNo != null ? Convert.ToInt32(misc.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationMiscFixedColumnCount = 0;
                                Permissions.OperationMiscPlaneView = false;
                                Permissions.OperationMiscPlaneEdit = false;
                                Permissions.OperationMiscIsCompView = false;
                                Permissions.OperationMiscIsCompEdit = false;
                                Permissions.OperationMiscGroupCodeView = false;
                                Permissions.OperationMiscGroupCodeEdit = false;
                                Permissions.OperationMiscGroupCodeFilter = false;
                                Permissions.OperationMiscGroupNameView = false;
                                Permissions.OperationMiscGroupNameEdit = false;
                                Permissions.OperationMiscGroupNameFilter = false;
                                Permissions.OperationMiscDetailsView = false;
                                Permissions.OperationMiscCustomerView = false;
                                Permissions.OperationMiscCustomerEdit = false;
                                Permissions.OperationMiscCustomerFilter = false;
                                Permissions.OperationMiscEmployeeView = false;
                                Permissions.OperationMiscEmployeeEdit = false;
                                Permissions.OperationMiscPaxView = false;
                                Permissions.OperationMiscPaxEdit = false;
                                Permissions.OperationMiscEstPaxView = false;
                                Permissions.OperationMiscEstPaxEdit = false;
                                Permissions.OperationMiscSupplierView = false;
                                Permissions.OperationMiscSupplierEdit = false;
                                Permissions.OperationMiscSupplierFilter = false;
                                Permissions.OperationMiscDateView = false;
                                Permissions.OperationMiscDateEdit = false;
                                Permissions.OperationMiscTimeView = false;
                                Permissions.OperationMiscTimeEdit = false;
                                Permissions.OperationMiscServiceDetailView = false;
                                Permissions.OperationMiscServiceDetailEdit = false;
                                Permissions.OperationMiscContactView = false;
                                Permissions.OperationMiscContactEdit = false;
                                Permissions.OperationMiscPhoneView = false;
                                Permissions.OperationMiscPhoneEdit = false;
                                Permissions.OperationMiscEmailView = false;
                                Permissions.OperationMiscEmailEdit = false;
                                Permissions.OperationMiscViewGroupContractView = false;
                                Permissions.OperationMiscAddressView = false;
                                Permissions.OperationMiscAddressEdit = false;
                                Permissions.OperationMiscCityView = false;
                                Permissions.OperationMiscCityEdit = false;
                                Permissions.OperationMiscCityFilter = false;
                                Permissions.OperationMiscStatusView = false;
                                Permissions.OperationMiscStatusEdit = false;
                                Permissions.OperationMiscStatusFilter = false;
                                Permissions.OperationMiscUnitPriceView = false;
                                Permissions.OperationMiscUnitPriceEdit = false;
                                Permissions.OperationMiscUnitPricePGView = false;
                                Permissions.OperationMiscUnitPricePGEdit = false;
                                Permissions.OperationMiscDiffView = false;
                                Permissions.OperationMiscDiffEdit = false;
                                Permissions.OperationMiscPGDiffView = false;
                                Permissions.OperationMiscPGDiffEdit = false;
                                Permissions.OperationMiscTotalAmountPaidView = false;
                                Permissions.OperationMiscTotalAmountPaidEdit = false;
                                Permissions.OperationMiscTotalAmountCostView = false;
                                Permissions.OperationMiscTotalAmountCostEdit = false;
                                Permissions.OperationMiscTotalOutAmountView = false;
                                Permissions.OperationMiscTotalOutAmountEdit = false;
                                Permissions.OperationMiscCurrencyView = false;
                                Permissions.OperationMiscCurrencyEdit = false;
                                Permissions.OperationMiscFirstPaymentView = false;
                                Permissions.OperationMiscFirstPaymentEdit = false;
                                Permissions.OperationMiscFirstPaymentMethodView = false;
                                Permissions.OperationMiscFirstPaymentMethodEdit = false;
                                Permissions.OperationMiscFirstPaymentDetailsView = false;
                                Permissions.OperationMiscDateofFirstPaymentView = false;
                                Permissions.OperationMiscDateofFirstPaymentEdit = false;
                                Permissions.OperationMiscSecondPaymentView = false;
                                Permissions.OperationMiscSecondPaymentEdit = false;
                                Permissions.OperationMiscSecondPaymentMethodView = false;
                                Permissions.OperationMiscSecondPaymentMethodEdit = false;
                                Permissions.OperationMiscSecondPaymentDetailsView = false;
                                Permissions.OperationMiscDateofSecondPaymentView = false;
                                Permissions.OperationMiscDateofSecondPaymentEdit = false;
                                Permissions.OperationMiscThirdPaymentView = false;
                                Permissions.OperationMiscThirdPaymentEdit = false;
                                Permissions.OperationMiscThirdPaymentMethodView = false;
                                Permissions.OperationMiscThirdPaymentMethodEdit = false;
                                Permissions.OperationMiscThirdPaymentDetailsView = false;
                                Permissions.OperationMiscDateofThirdPaymentView = false;
                                Permissions.OperationMiscDateofThirdPaymentEdit = false;
                                Permissions.OperationMiscQuotaPriceView = false;
                                Permissions.OperationMiscQuotaPriceEdit = false;
                                Permissions.OperationMiscQuotaPerGroupPriceView = false;
                                Permissions.OperationMiscQuotaPerGroupPriceEdit = false;
                                Permissions.OperationMiscQuotaSupplierView = false;
                                Permissions.OperationMiscQuotaSupplierEdit = false;
                                Permissions.OperationMiscNotesView = false;
                                Permissions.OperationMiscNotesEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationMiscFixedColumnCount = 0;
                            Permissions.OperationMiscPlaneView = false;
                            Permissions.OperationMiscPlaneEdit = false;
                            Permissions.OperationMiscIsCompView = false;
                            Permissions.OperationMiscIsCompEdit = false;
                            Permissions.OperationMiscGroupCodeView = false;
                            Permissions.OperationMiscGroupCodeEdit = false;
                            Permissions.OperationMiscGroupCodeFilter = false;
                            Permissions.OperationMiscGroupNameView = false;
                            Permissions.OperationMiscGroupNameEdit = false;
                            Permissions.OperationMiscGroupNameFilter = false;
                            Permissions.OperationMiscDetailsView = false;
                            Permissions.OperationMiscCustomerView = false;
                            Permissions.OperationMiscCustomerEdit = false;
                            Permissions.OperationMiscCustomerFilter = false;
                            Permissions.OperationMiscEmployeeView = false;
                            Permissions.OperationMiscEmployeeEdit = false;
                            Permissions.OperationMiscPaxView = false;
                            Permissions.OperationMiscPaxEdit = false;
                            Permissions.OperationMiscEstPaxView = false;
                            Permissions.OperationMiscEstPaxEdit = false;
                            Permissions.OperationMiscSupplierView = false;
                            Permissions.OperationMiscSupplierEdit = false;
                            Permissions.OperationMiscSupplierFilter = false;
                            Permissions.OperationMiscDateView = false;
                            Permissions.OperationMiscDateEdit = false;
                            Permissions.OperationMiscTimeView = false;
                            Permissions.OperationMiscTimeEdit = false;
                            Permissions.OperationMiscServiceDetailView = false;
                            Permissions.OperationMiscServiceDetailEdit = false;
                            Permissions.OperationMiscContactView = false;
                            Permissions.OperationMiscContactEdit = false;
                            Permissions.OperationMiscPhoneView = false;
                            Permissions.OperationMiscPhoneEdit = false;
                            Permissions.OperationMiscEmailView = false;
                            Permissions.OperationMiscEmailEdit = false;
                            Permissions.OperationMiscViewGroupContractView = false;
                            Permissions.OperationMiscAddressView = false;
                            Permissions.OperationMiscAddressEdit = false;
                            Permissions.OperationMiscCityView = false;
                            Permissions.OperationMiscCityEdit = false;
                            Permissions.OperationMiscCityFilter = false;
                            Permissions.OperationMiscStatusView = false;
                            Permissions.OperationMiscStatusEdit = false;
                            Permissions.OperationMiscStatusFilter = false;
                            Permissions.OperationMiscUnitPriceView = false;
                            Permissions.OperationMiscUnitPriceEdit = false;
                            Permissions.OperationMiscUnitPricePGView = false;
                            Permissions.OperationMiscUnitPricePGEdit = false;
                            Permissions.OperationMiscDiffView = false;
                            Permissions.OperationMiscDiffEdit = false;
                            Permissions.OperationMiscPGDiffView = false;
                            Permissions.OperationMiscPGDiffEdit = false;
                            Permissions.OperationMiscTotalAmountPaidView = false;
                            Permissions.OperationMiscTotalAmountPaidEdit = false;
                            Permissions.OperationMiscTotalAmountCostView = false;
                            Permissions.OperationMiscTotalAmountCostEdit = false;
                            Permissions.OperationMiscTotalOutAmountView = false;
                            Permissions.OperationMiscTotalOutAmountEdit = false;
                            Permissions.OperationMiscCurrencyView = false;
                            Permissions.OperationMiscCurrencyEdit = false;
                            Permissions.OperationMiscFirstPaymentView = false;
                            Permissions.OperationMiscFirstPaymentEdit = false;
                            Permissions.OperationMiscFirstPaymentMethodView = false;
                            Permissions.OperationMiscFirstPaymentMethodEdit = false;
                            Permissions.OperationMiscFirstPaymentDetailsView = false;
                            Permissions.OperationMiscDateofFirstPaymentView = false;
                            Permissions.OperationMiscDateofFirstPaymentEdit = false;
                            Permissions.OperationMiscSecondPaymentView = false;
                            Permissions.OperationMiscSecondPaymentEdit = false;
                            Permissions.OperationMiscSecondPaymentMethodView = false;
                            Permissions.OperationMiscSecondPaymentMethodEdit = false;
                            Permissions.OperationMiscSecondPaymentDetailsView = false;
                            Permissions.OperationMiscDateofSecondPaymentView = false;
                            Permissions.OperationMiscDateofSecondPaymentEdit = false;
                            Permissions.OperationMiscThirdPaymentView = false;
                            Permissions.OperationMiscThirdPaymentEdit = false;
                            Permissions.OperationMiscThirdPaymentMethodView = false;
                            Permissions.OperationMiscThirdPaymentMethodEdit = false;
                            Permissions.OperationMiscThirdPaymentDetailsView = false;
                            Permissions.OperationMiscDateofThirdPaymentView = false;
                            Permissions.OperationMiscDateofThirdPaymentEdit = false;
                            Permissions.OperationMiscQuotaPriceView = false;
                            Permissions.OperationMiscQuotaPriceEdit = false;
                            Permissions.OperationMiscQuotaPerGroupPriceView = false;
                            Permissions.OperationMiscQuotaPerGroupPriceEdit = false;
                            Permissions.OperationMiscQuotaSupplierView = false;
                            Permissions.OperationMiscQuotaSupplierEdit = false;
                            Permissions.OperationMiscNotesView = false;
                            Permissions.OperationMiscNotesEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationBuses = (from bus in Operation where bus.ToolTabID == 11 select bus).SingleOrDefault();
                if (OperationBuses == null)
                {
                    Permissions.OperationBusFixedColumnCount = 0;
                    Permissions.OperationBusIsInvoiceView = false;
                    Permissions.OperationBusIsInvoiceEdit = false;
                    Permissions.OperationBusInvoicePriceView = false;
                    Permissions.OperationBusInvoicePriceEdit = false;
                    Permissions.OperationBusGroupCodeView = false;
                    Permissions.OperationBusGroupCodeEdit = false;
                    Permissions.OperationBusGroupCodeFilter = false;
                    Permissions.OperationBusGroupNameView = false;
                    Permissions.OperationBusGroupNameEdit = false;
                    Permissions.OperationBusGroupNameFilter = false;
                    Permissions.OperationBusDetailsView = false;
                    Permissions.OperationBusCustomerView = false;
                    Permissions.OperationBusCustomerEdit = false;
                    Permissions.OperationBusCustomerFilter = false;
                    Permissions.OperationBusCostView = false;
                    Permissions.OperationBusCostEdit = false;
                    Permissions.OperationBusEmployeeView = false;
                    Permissions.OperationBusEmployeeEdit = false;
                    Permissions.OperationBusGuideTotalPaidView = false;
                    Permissions.OperationBusGuideTotalPaidEdit = false;
                    Permissions.OperationBusBusTotalPaidView = false;
                    Permissions.OperationBusBusTotalPaidEdit = false;
                    Permissions.OperationBusGuideDifferenceView = false;
                    Permissions.OperationBusGuideDifferenceEdit = false;
                    Permissions.OperationBusGuideMiscDifferenceView = false;
                    Permissions.OperationBusGuideMiscDifferenceEdit = false;
                    Permissions.OperationBusGuideStepOnDifferenceView = false;
                    Permissions.OperationBusGuideStepOnDifferenceEdit = false;
                    Permissions.OperationBusBusDifferenceView = false;
                    Permissions.OperationBusBusDifferenceEdit = false;
                    Permissions.OperationBusStartView = false;
                    Permissions.OperationBusStartEdit = false;
                    Permissions.OperationBusTimeView = false;
                    Permissions.OperationBusTimeEdit = false;
                    Permissions.OperationBusServiceDateView = false;
                    Permissions.OperationBusServiceDateEdit = false;
                    Permissions.OperationBusStartCityView = false;
                    Permissions.OperationBusStartCityEdit = false;
                    Permissions.OperationBusStartCityFilter = false;
                    Permissions.OperationBusEndCityView = false;
                    Permissions.OperationBusEndCityEdit = false;
                    Permissions.OperationBusEndCityFilter = false;
                    Permissions.OperationBusBusCountView = false;
                    Permissions.OperationBusBusCountEdit = false;
                    Permissions.OperationBusBusSizeView = false;
                    Permissions.OperationBusBusSizeEdit = false;
                    Permissions.OperationBusPaxView = false;
                    Permissions.OperationBusPaxEdit = false;
                    Permissions.OperationBusEstPaxView = false;
                    Permissions.OperationBusEstPaxEdit = false;
                    Permissions.OperationBusServiceCodeView = false;
                    Permissions.OperationBusServiceCodeEdit = false;
                    Permissions.OperationBusServiceDetailView = false;
                    Permissions.OperationBusServiceDetailEdit = false;
                    Permissions.OperationBusSupplierView = false;
                    Permissions.OperationBusSupplierEdit = false;
                    Permissions.OperationBusSupplierFilter = false;
                    Permissions.OperationBusAirportView = false;
                    Permissions.OperationBusAirportEdit = false;
                    Permissions.OperationBusViewGroupContractView = false;
                    Permissions.OperationBusStatusView = false;
                    Permissions.OperationBusStatusEdit = false;
                    Permissions.OperationBusStatusFilter = false;
                    Permissions.OperationBusConfirmationView = false;
                    Permissions.OperationBusConfirmationEdit = false;
                    Permissions.OperationBusGuideView = false;
                    Permissions.OperationBusGuideEdit = false;
                    Permissions.OperationBusGuideSalaryView = false;
                    Permissions.OperationBusGuideSalaryEdit = false;
                    Permissions.OperationBusGuideMiscView = false;
                    Permissions.OperationBusGuideMiscEdit = false;
                    Permissions.OperationBusGuideStepOnView = false;
                    Permissions.OperationBusGuideStepOnEdit = false;
                    Permissions.OperationBusGuideSalaryPaidView = false;
                    Permissions.OperationBusGuideSalaryPaidEdit = false;
                    Permissions.OperationBusGuideAdditionalChargesView = false;
                    Permissions.OperationBusGuideAdditionalChargesEdit = false;
                    Permissions.OperationBusGuideSalaryInvoicePaidView = false;
                    Permissions.OperationBusGuideSalaryInvoicePaidEdit = false;
                    Permissions.OperationBusGuideTotalCostView = false;
                    Permissions.OperationBusGuideTotalCostEdit = false;
                    Permissions.OperationBusBusTotalCostView = false;
                    Permissions.OperationBusBusTotalCostEdit = false;
                    Permissions.OperationBusPriceView = false;
                    Permissions.OperationBusPriceEdit = false;
                    Permissions.OperationBusBusCurrencyView = false;
                    Permissions.OperationBusBusCurrencyEdit = false;
                    Permissions.OperationBusQuotaBusPriceView = false;
                    Permissions.OperationBusQuotaBusPriceEdit = false;
                    Permissions.OperationBusQuotaSupplierView = false;
                    Permissions.OperationBusQuotaSupplierEdit = false;
                    Permissions.OperationBusGuideCurrencyView = false;
                    Permissions.OperationBusGuideCurrencyEdit = false;
                    Permissions.OperationBusQuotaGuideSalaryView = false;
                    Permissions.OperationBusQuotaGuideSalaryEdit = false;
                    Permissions.OperationBusQuotaGuideMiscView = false;
                    Permissions.OperationBusQuotaGuideMiscEdit = false;
                    Permissions.OperationBusQuotaGuideStepOnView = false;
                    Permissions.OperationBusQuotaGuideStepOnEdit = false;
                    Permissions.OperationBusQuotaGuideView = false;
                    Permissions.OperationBusQuotaGuideEdit = false;
                    Permissions.OperationBusBusFirstPaymentView = false;
                    Permissions.OperationBusBusFirstPaymentEdit = false;
                    Permissions.OperationBusBusFirstPaymentMethodView = false;
                    Permissions.OperationBusBusFirstPaymentMethodEdit = false;
                    Permissions.OperationBusBusFirstPaymentDetailsView = false;
                    Permissions.OperationBusBusDateofFirstPaymentView = false;
                    Permissions.OperationBusBusDateofFirstPaymentEdit = false;
                    Permissions.OperationBusBusSecondPaymentView = false;
                    Permissions.OperationBusBusSecondPaymentEdit = false;
                    Permissions.OperationBusBusSecondPaymentMethodView = false;
                    Permissions.OperationBusBusSecondPaymentMethodEdit = false;
                    Permissions.OperationBusBusSecondPaymentDetailsView = false;
                    Permissions.OperationBusBusDateofSecondPaymentView = false;
                    Permissions.OperationBusBusDateofSecondPaymentEdit = false;
                    Permissions.OperationBusBusThirdPaymentView = false;
                    Permissions.OperationBusBusThirdPaymentEdit = false;
                    Permissions.OperationBusBusThirdPaymentMethodView = false;
                    Permissions.OperationBusBusThirdPaymentMethodEdit = false;
                    Permissions.OperationBusBusThirdPaymentDetailsView = false;
                    Permissions.OperationBusBusDateofThirdPaymentView = false;
                    Permissions.OperationBusBusDateofThirdPaymentEdit = false;
                    Permissions.OperationBusGuideFirstPaymentView = false;
                    Permissions.OperationBusGuideFirstPaymentEdit = false;
                    Permissions.OperationBusGuideFirstPaymentMethodView = false;
                    Permissions.OperationBusGuideFirstPaymentMethodEdit = false;
                    Permissions.OperationBusGuideFirstPaymentDetailsView = false;
                    Permissions.OperationBusGuideDateofFirstPaymentView = false;
                    Permissions.OperationBusGuideDateofFirstPaymentEdit = false;
                    Permissions.OperationBusGuideSecondPaymentView = false;
                    Permissions.OperationBusGuideSecondPaymentEdit = false;
                    Permissions.OperationBusGuideSecondPaymentMethodView = false;
                    Permissions.OperationBusGuideSecondPaymentMethodEdit = false;
                    Permissions.OperationBusGuideSecondPaymentDetailsView = false;
                    Permissions.OperationBusGuideDateofSecondPaymentView = false;
                    Permissions.OperationBusGuideDateofSecondPaymentEdit = false;
                    Permissions.OperationBusGuideThirdPaymentView = false;
                    Permissions.OperationBusGuideThirdPaymentEdit = false;
                    Permissions.OperationBusGuideThirdPaymentMethodView = false;
                    Permissions.OperationBusGuideThirdPaymentMethodEdit = false;
                    Permissions.OperationBusGuideThirdPaymentDetailsView = false;
                    Permissions.OperationBusGuideDateofThirdPaymentView = false;
                    Permissions.OperationBusGuideDateofThirdPaymentEdit = false;
                    Permissions.OperationBusNoteView = false;
                    Permissions.OperationBusNoteEdit = false;
                }
                else
                {
                    var OperationBusesColumns = (from roomcolumn in OperationBuses.ToolTabColumns select roomcolumn.Permisionss).ToList();
                    if (OperationBusesColumns == null)
                    {
                        Permissions.OperationBusFixedColumnCount = 0;
                        Permissions.OperationBusIsInvoiceView = false;
                        Permissions.OperationBusIsInvoiceEdit = false;
                        Permissions.OperationBusInvoicePriceView = false;
                        Permissions.OperationBusInvoicePriceEdit = false;
                        Permissions.OperationBusGroupCodeView = false;
                        Permissions.OperationBusGroupCodeEdit = false;
                        Permissions.OperationBusGroupCodeFilter = false;
                        Permissions.OperationBusGroupNameView = false;
                        Permissions.OperationBusGroupNameEdit = false;
                        Permissions.OperationBusGroupNameFilter = false;
                        Permissions.OperationBusDetailsView = false;
                        Permissions.OperationBusCustomerView = false;
                        Permissions.OperationBusCustomerEdit = false;
                        Permissions.OperationBusCustomerFilter = false;
                        Permissions.OperationBusCostView = false;
                        Permissions.OperationBusCostEdit = false;
                        Permissions.OperationBusEmployeeView = false;
                        Permissions.OperationBusEmployeeEdit = false;
                        Permissions.OperationBusGuideTotalPaidView = false;
                        Permissions.OperationBusGuideTotalPaidEdit = false;
                        Permissions.OperationBusBusTotalPaidView = false;
                        Permissions.OperationBusBusTotalPaidEdit = false;
                        Permissions.OperationBusGuideDifferenceView = false;
                        Permissions.OperationBusGuideDifferenceEdit = false;
                        Permissions.OperationBusGuideMiscDifferenceView = false;
                        Permissions.OperationBusGuideMiscDifferenceEdit = false;
                        Permissions.OperationBusGuideStepOnDifferenceView = false;
                        Permissions.OperationBusGuideStepOnDifferenceEdit = false;
                        Permissions.OperationBusBusDifferenceView = false;
                        Permissions.OperationBusBusDifferenceEdit = false;
                        Permissions.OperationBusStartView = false;
                        Permissions.OperationBusStartEdit = false;
                        Permissions.OperationBusTimeView = false;
                        Permissions.OperationBusTimeEdit = false;
                        Permissions.OperationBusServiceDateView = false;
                        Permissions.OperationBusServiceDateEdit = false;
                        Permissions.OperationBusStartCityView = false;
                        Permissions.OperationBusStartCityEdit = false;
                        Permissions.OperationBusStartCityFilter = false;
                        Permissions.OperationBusEndCityView = false;
                        Permissions.OperationBusEndCityEdit = false;
                        Permissions.OperationBusEndCityFilter = false;
                        Permissions.OperationBusBusCountView = false;
                        Permissions.OperationBusBusCountEdit = false;
                        Permissions.OperationBusBusSizeView = false;
                        Permissions.OperationBusBusSizeEdit = false;
                        Permissions.OperationBusPaxView = false;
                        Permissions.OperationBusPaxEdit = false;
                        Permissions.OperationBusEstPaxView = false;
                        Permissions.OperationBusEstPaxEdit = false;
                        Permissions.OperationBusServiceCodeView = false;
                        Permissions.OperationBusServiceCodeEdit = false;
                        Permissions.OperationBusServiceDetailView = false;
                        Permissions.OperationBusServiceDetailEdit = false;
                        Permissions.OperationBusSupplierView = false;
                        Permissions.OperationBusSupplierEdit = false;
                        Permissions.OperationBusSupplierFilter = false;
                        Permissions.OperationBusAirportView = false;
                        Permissions.OperationBusAirportEdit = false;
                        Permissions.OperationBusViewGroupContractView = false;
                        Permissions.OperationBusStatusView = false;
                        Permissions.OperationBusStatusEdit = false;
                        Permissions.OperationBusStatusFilter = false;
                        Permissions.OperationBusConfirmationView = false;
                        Permissions.OperationBusConfirmationEdit = false;
                        Permissions.OperationBusGuideView = false;
                        Permissions.OperationBusGuideEdit = false;
                        Permissions.OperationBusGuideSalaryView = false;
                        Permissions.OperationBusGuideSalaryEdit = false;
                        Permissions.OperationBusGuideMiscView = false;
                        Permissions.OperationBusGuideMiscEdit = false;
                        Permissions.OperationBusGuideStepOnView = false;
                        Permissions.OperationBusGuideStepOnEdit = false;
                        Permissions.OperationBusGuideSalaryPaidView = false;
                        Permissions.OperationBusGuideSalaryPaidEdit = false;
                        Permissions.OperationBusGuideAdditionalChargesView = false;
                        Permissions.OperationBusGuideAdditionalChargesEdit = false;
                        Permissions.OperationBusGuideSalaryInvoicePaidView = false;
                        Permissions.OperationBusGuideSalaryInvoicePaidEdit = false;
                        Permissions.OperationBusGuideTotalCostView = false;
                        Permissions.OperationBusGuideTotalCostEdit = false;
                        Permissions.OperationBusBusTotalCostView = false;
                        Permissions.OperationBusBusTotalCostEdit = false;
                        Permissions.OperationBusPriceView = false;
                        Permissions.OperationBusPriceEdit = false;
                        Permissions.OperationBusBusCurrencyView = false;
                        Permissions.OperationBusBusCurrencyEdit = false;
                        Permissions.OperationBusQuotaBusPriceView = false;
                        Permissions.OperationBusQuotaBusPriceEdit = false;
                        Permissions.OperationBusQuotaSupplierView = false;
                        Permissions.OperationBusQuotaSupplierEdit = false;
                        Permissions.OperationBusGuideCurrencyView = false;
                        Permissions.OperationBusGuideCurrencyEdit = false;
                        Permissions.OperationBusQuotaGuideSalaryView = false;
                        Permissions.OperationBusQuotaGuideSalaryEdit = false;
                        Permissions.OperationBusQuotaGuideMiscView = false;
                        Permissions.OperationBusQuotaGuideMiscEdit = false;
                        Permissions.OperationBusQuotaGuideStepOnView = false;
                        Permissions.OperationBusQuotaGuideStepOnEdit = false;
                        Permissions.OperationBusQuotaGuideView = false;
                        Permissions.OperationBusQuotaGuideEdit = false;
                        Permissions.OperationBusBusFirstPaymentView = false;
                        Permissions.OperationBusBusFirstPaymentEdit = false;
                        Permissions.OperationBusBusFirstPaymentMethodView = false;
                        Permissions.OperationBusBusFirstPaymentMethodEdit = false;
                        Permissions.OperationBusBusFirstPaymentDetailsView = false;
                        Permissions.OperationBusBusDateofFirstPaymentView = false;
                        Permissions.OperationBusBusDateofFirstPaymentEdit = false;
                        Permissions.OperationBusBusSecondPaymentView = false;
                        Permissions.OperationBusBusSecondPaymentEdit = false;
                        Permissions.OperationBusBusSecondPaymentMethodView = false;
                        Permissions.OperationBusBusSecondPaymentMethodEdit = false;
                        Permissions.OperationBusBusSecondPaymentDetailsView = false;
                        Permissions.OperationBusBusDateofSecondPaymentView = false;
                        Permissions.OperationBusBusDateofSecondPaymentEdit = false;
                        Permissions.OperationBusBusThirdPaymentView = false;
                        Permissions.OperationBusBusThirdPaymentEdit = false;
                        Permissions.OperationBusBusThirdPaymentMethodView = false;
                        Permissions.OperationBusBusThirdPaymentMethodEdit = false;
                        Permissions.OperationBusBusThirdPaymentDetailsView = false;
                        Permissions.OperationBusBusDateofThirdPaymentView = false;
                        Permissions.OperationBusBusDateofThirdPaymentEdit = false;
                        Permissions.OperationBusGuideFirstPaymentView = false;
                        Permissions.OperationBusGuideFirstPaymentEdit = false;
                        Permissions.OperationBusGuideFirstPaymentMethodView = false;
                        Permissions.OperationBusGuideFirstPaymentMethodEdit = false;
                        Permissions.OperationBusGuideFirstPaymentDetailsView = false;
                        Permissions.OperationBusGuideDateofFirstPaymentView = false;
                        Permissions.OperationBusGuideDateofFirstPaymentEdit = false;
                        Permissions.OperationBusGuideSecondPaymentView = false;
                        Permissions.OperationBusGuideSecondPaymentEdit = false;
                        Permissions.OperationBusGuideSecondPaymentMethodView = false;
                        Permissions.OperationBusGuideSecondPaymentMethodEdit = false;
                        Permissions.OperationBusGuideSecondPaymentDetailsView = false;
                        Permissions.OperationBusGuideDateofSecondPaymentView = false;
                        Permissions.OperationBusGuideDateofSecondPaymentEdit = false;
                        Permissions.OperationBusGuideThirdPaymentView = false;
                        Permissions.OperationBusGuideThirdPaymentEdit = false;
                        Permissions.OperationBusGuideThirdPaymentMethodView = false;
                        Permissions.OperationBusGuideThirdPaymentMethodEdit = false;
                        Permissions.OperationBusGuideThirdPaymentDetailsView = false;
                        Permissions.OperationBusGuideDateofThirdPaymentView = false;
                        Permissions.OperationBusGuideDateofThirdPaymentEdit = false;
                        Permissions.OperationBusNoteView = false;
                        Permissions.OperationBusNoteEdit = false;
                    }
                    else
                    {
                        if (!OperationBusesColumns.Any(perm => perm == null))
                        {
                            if (OperationBusesColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationBusFixedColumnCount = OperationBuses.PermFixCol != null ? Convert.ToInt32(OperationBuses.PermFixCol) : 0;
                                foreach (var bus in OperationBusesColumns)
                                {
                                    switch (bus.PerColumnName)
                                    {
                                        case "Is Invoice":
                                            {
                                                Permissions.OperationBusIsInvoiceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusIsInvoiceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusIsInvoiceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Invoice Price":
                                            {
                                                Permissions.OperationBusInvoicePriceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusInvoicePriceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusInvoicePriceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Code":
                                            {
                                                Permissions.OperationBusGroupCodeView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGroupCodeEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGroupCodeFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusGroupCodeLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Name":
                                            {
                                                Permissions.OperationBusGroupNameView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGroupNameEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGroupNameFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusGroupNameLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Details":
                                            {
                                                Permissions.OperationBusDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationBusCustomerView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusCustomerEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusCustomerFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusCustomerLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Cost":
                                            {
                                                Permissions.OperationBusCostView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusCostEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusCostLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Employee":
                                            {
                                                Permissions.OperationBusEmployeeView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusEmployeeEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusEmployeeLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Total Paid":
                                            {
                                                Permissions.OperationBusGuideTotalPaidView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideTotalPaidEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideTotalPaidLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Total Paid":
                                            {
                                                Permissions.OperationBusBusTotalPaidView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusTotalPaidEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusTotalPaidLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Difference":
                                            {
                                                Permissions.OperationBusGuideDifferenceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideDifferenceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideDifferenceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Misc Difference":
                                            {
                                                Permissions.OperationBusGuideMiscDifferenceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideMiscDifferenceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideMiscDifferenceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide StepOn Difference":
                                            {
                                                Permissions.OperationBusGuideStepOnDifferenceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideStepOnDifferenceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideStepOnDifferenceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Difference":
                                            {
                                                Permissions.OperationBusBusDifferenceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusDifferenceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusDifferenceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Start":
                                            {
                                                Permissions.OperationBusStartView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusStartEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusStartLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Time":
                                            {
                                                Permissions.OperationBusTimeView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusTimeEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusTimeLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Service Date":
                                            {
                                                Permissions.OperationBusServiceDateView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusServiceDateEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusServiceDateLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Start City":
                                            {
                                                Permissions.OperationBusStartCityView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusStartCityEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusStartCityFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusStartCityLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "End City":
                                            {
                                                Permissions.OperationBusEndCityView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusEndCityEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusEndCityFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusEndCityLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Count":
                                            {
                                                Permissions.OperationBusBusCountView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusCountEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusCountLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Size":
                                            {
                                                Permissions.OperationBusBusSizeView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusSizeEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusSizeLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationBusPaxView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusPaxEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusPaxLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Est. Pax":
                                            {
                                                Permissions.OperationBusEstPaxView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusEstPaxEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusEstPaxLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Service Code":
                                            {
                                                Permissions.OperationBusServiceCodeView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusServiceCodeEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusServiceCodeLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Service Detail":
                                            {
                                                Permissions.OperationBusServiceDetailView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusServiceDetailEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusServiceDetailLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Supplier":
                                            {
                                                Permissions.OperationBusSupplierView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusSupplierEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusSupplierFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusSupplierLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Airport":
                                            {
                                                Permissions.OperationBusAirportView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusAirportEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusAirportLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "View Group Contract":
                                            {
                                                Permissions.OperationBusViewGroupContractView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusViewGroupContractLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Status":
                                            {
                                                Permissions.OperationBusStatusView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusStatusEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusStatusFilter = bus.PerHasFilter != null ? Convert.ToBoolean(bus.PerHasFilter) : false;
                                                Permissions.OperationBusStatusLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Confirmation":
                                            {
                                                Permissions.OperationBusConfirmationView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusConfirmationEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusConfirmationLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide":
                                            {
                                                Permissions.OperationBusGuideView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Salary":
                                            {
                                                Permissions.OperationBusGuideSalaryView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSalaryEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideSalaryLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Misc":
                                            {
                                                Permissions.OperationBusGuideMiscView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideMiscEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideMiscLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide StepOn":
                                            {
                                                Permissions.OperationBusGuideStepOnView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideStepOnEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideStepOnLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Salary Paid":
                                            {
                                                Permissions.OperationBusGuideSalaryPaidView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSalaryPaidEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideSalaryPaidLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Additional Charges":
                                            {
                                                Permissions.OperationBusGuideAdditionalChargesView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideAdditionalChargesEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideAdditionalChargesLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Salary Invoice Paid":
                                            {
                                                Permissions.OperationBusGuideSalaryInvoicePaidView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSalaryInvoicePaidEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideSalaryInvoicePaidLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Total Cost":
                                            {
                                                Permissions.OperationBusGuideTotalCostView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideTotalCostEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideTotalCostLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Total Cost":
                                            {
                                                Permissions.OperationBusBusTotalCostView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusTotalCostEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusTotalCostLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Price":
                                            {
                                                Permissions.OperationBusPriceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusPriceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusPriceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Currency":
                                            {
                                                Permissions.OperationBusBusCurrencyView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusCurrencyEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusCurrencyLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Bus Price":
                                            {
                                                Permissions.OperationBusQuotaBusPriceView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaBusPriceEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaBusPriceLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Supplier":
                                            {
                                                Permissions.OperationBusQuotaSupplierView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaSupplierEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaSupplierLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Currency":
                                            {
                                                Permissions.OperationBusGuideCurrencyView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideCurrencyEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideCurrencyLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Guide Salary":
                                            {
                                                Permissions.OperationBusQuotaGuideSalaryView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaGuideSalaryEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaGuideSalaryLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Guide Misc":
                                            {
                                                Permissions.OperationBusQuotaGuideMiscView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaGuideMiscEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaGuideMiscLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Guide StepOn":
                                            {
                                                Permissions.OperationBusQuotaGuideStepOnView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaGuideStepOnEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaGuideStepOnLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quota Guide":
                                            {
                                                Permissions.OperationBusQuotaGuideView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusQuotaGuideEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusQuotaGuideLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 1st Payment":
                                            {
                                                Permissions.OperationBusBusFirstPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusFirstPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusFirstPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 1st Payment Method":
                                            {
                                                Permissions.OperationBusBusFirstPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusFirstPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusFirstPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Pay 1 Details":
                                            {
                                                Permissions.OperationBusBusFirstPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusFirstPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Date of 1st Payment":
                                            {
                                                Permissions.OperationBusBusDateofFirstPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusDateofFirstPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusDateofFirstPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 2nd Payment":
                                            {
                                                Permissions.OperationBusBusSecondPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusSecondPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusSecondPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 2nd Payment Method":
                                            {
                                                Permissions.OperationBusBusSecondPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusSecondPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusSecondPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Pay 2 Details":
                                            {
                                                Permissions.OperationBusBusSecondPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusSecondPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Date of 2nd Payment":
                                            {
                                                Permissions.OperationBusBusDateofSecondPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusDateofSecondPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusDateofSecondPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 3rd Payment":
                                            {
                                                Permissions.OperationBusBusThirdPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusThirdPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusThirdPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus 3rd Payment Method":
                                            {
                                                Permissions.OperationBusBusThirdPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusThirdPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusThirdPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Pay 3 Details":
                                            {
                                                Permissions.OperationBusBusThirdPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusThirdPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bus Date of 3rd Payment":
                                            {
                                                Permissions.OperationBusBusDateofThirdPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusBusDateofThirdPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusBusDateofThirdPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 1st Payment":
                                            {
                                                Permissions.OperationBusGuideFirstPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideFirstPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideFirstPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 1st Payment Method":
                                            {
                                                Permissions.OperationBusGuideFirstPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideFirstPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideFirstPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Pay 1 Details":
                                            {
                                                Permissions.OperationBusGuideFirstPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideFirstPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Date of 1st Payment":
                                            {
                                                Permissions.OperationBusGuideDateofFirstPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideDateofFirstPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideDateofFirstPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 2nd Payment":
                                            {
                                                Permissions.OperationBusGuideSecondPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSecondPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideSecondPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 2nd Payment Method":
                                            {
                                                Permissions.OperationBusGuideSecondPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSecondPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideSecondPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Pay 2 Details":
                                            {
                                                Permissions.OperationBusGuideSecondPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideSecondPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Date of 2nd Payment":
                                            {
                                                Permissions.OperationBusGuideDateofSecondPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideDateofSecondPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideDateofSecondPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 3rd Payment":
                                            {
                                                Permissions.OperationBusGuideThirdPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideThirdPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideThirdPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide 3rd Payment Method":
                                            {
                                                Permissions.OperationBusGuideThirdPaymentMethodView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideThirdPaymentMethodEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideThirdPaymentMethodLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Pay 3 Details":
                                            {
                                                Permissions.OperationBusGuideThirdPaymentDetailsView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideThirdPaymentDetailsLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide Date of 3rd Payment":
                                            {
                                                Permissions.OperationBusGuideDateofThirdPaymentView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusGuideDateofThirdPaymentEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusGuideDateofThirdPaymentLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Note":
                                            {
                                                Permissions.OperationBusNoteView = bus.PerColumnView != null ? Convert.ToBoolean(bus.PerColumnView) : false;
                                                Permissions.OperationBusNoteEdit = bus.PerColumnEdit != null ? Convert.ToBoolean(bus.PerColumnEdit) : false;
                                                Permissions.OperationBusNoteLineNo = bus.PerColumnLineNo != null ? Convert.ToInt32(bus.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationBusFixedColumnCount = 0;
                                Permissions.OperationBusIsInvoiceView = false;
                                Permissions.OperationBusIsInvoiceEdit = false;
                                Permissions.OperationBusInvoicePriceView = false;
                                Permissions.OperationBusInvoicePriceEdit = false;
                                Permissions.OperationBusGroupCodeView = false;
                                Permissions.OperationBusGroupCodeEdit = false;
                                Permissions.OperationBusGroupCodeFilter = false;
                                Permissions.OperationBusGroupNameView = false;
                                Permissions.OperationBusGroupNameEdit = false;
                                Permissions.OperationBusGroupNameFilter = false;
                                Permissions.OperationBusDetailsView = false;
                                Permissions.OperationBusCustomerView = false;
                                Permissions.OperationBusCustomerEdit = false;
                                Permissions.OperationBusCustomerFilter = false;
                                Permissions.OperationBusCostView = false;
                                Permissions.OperationBusCostEdit = false;
                                Permissions.OperationBusEmployeeView = false;
                                Permissions.OperationBusEmployeeEdit = false;
                                Permissions.OperationBusGuideTotalPaidView = false;
                                Permissions.OperationBusGuideTotalPaidEdit = false;
                                Permissions.OperationBusBusTotalPaidView = false;
                                Permissions.OperationBusBusTotalPaidEdit = false;
                                Permissions.OperationBusGuideDifferenceView = false;
                                Permissions.OperationBusGuideDifferenceEdit = false;
                                Permissions.OperationBusGuideMiscDifferenceView = false;
                                Permissions.OperationBusGuideMiscDifferenceEdit = false;
                                Permissions.OperationBusGuideStepOnDifferenceView = false;
                                Permissions.OperationBusGuideStepOnDifferenceEdit = false;
                                Permissions.OperationBusBusDifferenceView = false;
                                Permissions.OperationBusBusDifferenceEdit = false;
                                Permissions.OperationBusStartView = false;
                                Permissions.OperationBusStartEdit = false;
                                Permissions.OperationBusTimeView = false;
                                Permissions.OperationBusTimeEdit = false;
                                Permissions.OperationBusServiceDateView = false;
                                Permissions.OperationBusServiceDateEdit = false;
                                Permissions.OperationBusStartCityView = false;
                                Permissions.OperationBusStartCityEdit = false;
                                Permissions.OperationBusStartCityFilter = false;
                                Permissions.OperationBusEndCityView = false;
                                Permissions.OperationBusEndCityEdit = false;
                                Permissions.OperationBusEndCityFilter = false;
                                Permissions.OperationBusBusCountView = false;
                                Permissions.OperationBusBusCountEdit = false;
                                Permissions.OperationBusBusSizeView = false;
                                Permissions.OperationBusBusSizeEdit = false;
                                Permissions.OperationBusPaxView = false;
                                Permissions.OperationBusPaxEdit = false;
                                Permissions.OperationBusEstPaxView = false;
                                Permissions.OperationBusEstPaxEdit = false;
                                Permissions.OperationBusServiceCodeView = false;
                                Permissions.OperationBusServiceCodeEdit = false;
                                Permissions.OperationBusServiceDetailView = false;
                                Permissions.OperationBusServiceDetailEdit = false;
                                Permissions.OperationBusSupplierView = false;
                                Permissions.OperationBusSupplierEdit = false;
                                Permissions.OperationBusSupplierFilter = false;
                                Permissions.OperationBusAirportView = false;
                                Permissions.OperationBusAirportEdit = false;
                                Permissions.OperationBusViewGroupContractView = false;
                                Permissions.OperationBusStatusView = false;
                                Permissions.OperationBusStatusEdit = false;
                                Permissions.OperationBusStatusFilter = false;
                                Permissions.OperationBusConfirmationView = false;
                                Permissions.OperationBusConfirmationEdit = false;
                                Permissions.OperationBusGuideView = false;
                                Permissions.OperationBusGuideEdit = false;
                                Permissions.OperationBusGuideSalaryView = false;
                                Permissions.OperationBusGuideSalaryEdit = false;
                                Permissions.OperationBusGuideMiscView = false;
                                Permissions.OperationBusGuideMiscEdit = false;
                                Permissions.OperationBusGuideStepOnView = false;
                                Permissions.OperationBusGuideStepOnEdit = false;
                                Permissions.OperationBusGuideSalaryPaidView = false;
                                Permissions.OperationBusGuideSalaryPaidEdit = false;
                                Permissions.OperationBusGuideAdditionalChargesView = false;
                                Permissions.OperationBusGuideAdditionalChargesEdit = false;
                                Permissions.OperationBusGuideSalaryInvoicePaidView = false;
                                Permissions.OperationBusGuideSalaryInvoicePaidEdit = false;
                                Permissions.OperationBusGuideTotalCostView = false;
                                Permissions.OperationBusGuideTotalCostEdit = false;
                                Permissions.OperationBusBusTotalCostView = false;
                                Permissions.OperationBusBusTotalCostEdit = false;
                                Permissions.OperationBusPriceView = false;
                                Permissions.OperationBusPriceEdit = false;
                                Permissions.OperationBusBusCurrencyView = false;
                                Permissions.OperationBusBusCurrencyEdit = false;
                                Permissions.OperationBusQuotaBusPriceView = false;
                                Permissions.OperationBusQuotaBusPriceEdit = false;
                                Permissions.OperationBusQuotaSupplierView = false;
                                Permissions.OperationBusQuotaSupplierEdit = false;
                                Permissions.OperationBusGuideCurrencyView = false;
                                Permissions.OperationBusGuideCurrencyEdit = false;
                                Permissions.OperationBusQuotaGuideSalaryView = false;
                                Permissions.OperationBusQuotaGuideSalaryEdit = false;
                                Permissions.OperationBusQuotaGuideMiscView = false;
                                Permissions.OperationBusQuotaGuideMiscEdit = false;
                                Permissions.OperationBusQuotaGuideStepOnView = false;
                                Permissions.OperationBusQuotaGuideStepOnEdit = false;
                                Permissions.OperationBusQuotaGuideView = false;
                                Permissions.OperationBusQuotaGuideEdit = false;
                                Permissions.OperationBusBusFirstPaymentView = false;
                                Permissions.OperationBusBusFirstPaymentEdit = false;
                                Permissions.OperationBusBusFirstPaymentMethodView = false;
                                Permissions.OperationBusBusFirstPaymentMethodEdit = false;
                                Permissions.OperationBusBusFirstPaymentDetailsView = false;
                                Permissions.OperationBusBusDateofFirstPaymentView = false;
                                Permissions.OperationBusBusDateofFirstPaymentEdit = false;
                                Permissions.OperationBusBusSecondPaymentView = false;
                                Permissions.OperationBusBusSecondPaymentEdit = false;
                                Permissions.OperationBusBusSecondPaymentMethodView = false;
                                Permissions.OperationBusBusSecondPaymentMethodEdit = false;
                                Permissions.OperationBusBusSecondPaymentDetailsView = false;
                                Permissions.OperationBusBusDateofSecondPaymentView = false;
                                Permissions.OperationBusBusDateofSecondPaymentEdit = false;
                                Permissions.OperationBusBusThirdPaymentView = false;
                                Permissions.OperationBusBusThirdPaymentEdit = false;
                                Permissions.OperationBusBusThirdPaymentMethodView = false;
                                Permissions.OperationBusBusThirdPaymentMethodEdit = false;
                                Permissions.OperationBusBusThirdPaymentDetailsView = false;
                                Permissions.OperationBusBusDateofThirdPaymentView = false;
                                Permissions.OperationBusBusDateofThirdPaymentEdit = false;
                                Permissions.OperationBusGuideFirstPaymentView = false;
                                Permissions.OperationBusGuideFirstPaymentEdit = false;
                                Permissions.OperationBusGuideFirstPaymentMethodView = false;
                                Permissions.OperationBusGuideFirstPaymentMethodEdit = false;
                                Permissions.OperationBusGuideFirstPaymentDetailsView = false;
                                Permissions.OperationBusGuideDateofFirstPaymentView = false;
                                Permissions.OperationBusGuideDateofFirstPaymentEdit = false;
                                Permissions.OperationBusGuideSecondPaymentView = false;
                                Permissions.OperationBusGuideSecondPaymentEdit = false;
                                Permissions.OperationBusGuideSecondPaymentMethodView = false;
                                Permissions.OperationBusGuideSecondPaymentMethodEdit = false;
                                Permissions.OperationBusGuideSecondPaymentDetailsView = false;
                                Permissions.OperationBusGuideDateofSecondPaymentView = false;
                                Permissions.OperationBusGuideDateofSecondPaymentEdit = false;
                                Permissions.OperationBusGuideThirdPaymentView = false;
                                Permissions.OperationBusGuideThirdPaymentEdit = false;
                                Permissions.OperationBusGuideThirdPaymentMethodView = false;
                                Permissions.OperationBusGuideThirdPaymentMethodEdit = false;
                                Permissions.OperationBusGuideThirdPaymentDetailsView = false;
                                Permissions.OperationBusGuideDateofThirdPaymentView = false;
                                Permissions.OperationBusGuideDateofThirdPaymentEdit = false;
                                Permissions.OperationBusNoteView = false;
                                Permissions.OperationBusNoteEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationBusFixedColumnCount = 0;
                            Permissions.OperationBusIsInvoiceView = false;
                            Permissions.OperationBusIsInvoiceEdit = false;
                            Permissions.OperationBusInvoicePriceView = false;
                            Permissions.OperationBusInvoicePriceEdit = false;
                            Permissions.OperationBusGroupCodeView = false;
                            Permissions.OperationBusGroupCodeEdit = false;
                            Permissions.OperationBusGroupCodeFilter = false;
                            Permissions.OperationBusGroupNameView = false;
                            Permissions.OperationBusGroupNameEdit = false;
                            Permissions.OperationBusGroupNameFilter = false;
                            Permissions.OperationBusDetailsView = false;
                            Permissions.OperationBusCustomerView = false;
                            Permissions.OperationBusCustomerEdit = false;
                            Permissions.OperationBusCustomerFilter = false;
                            Permissions.OperationBusCostView = false;
                            Permissions.OperationBusCostEdit = false;
                            Permissions.OperationBusEmployeeView = false;
                            Permissions.OperationBusEmployeeEdit = false;
                            Permissions.OperationBusGuideTotalPaidView = false;
                            Permissions.OperationBusGuideTotalPaidEdit = false;
                            Permissions.OperationBusBusTotalPaidView = false;
                            Permissions.OperationBusBusTotalPaidEdit = false;
                            Permissions.OperationBusGuideDifferenceView = false;
                            Permissions.OperationBusGuideDifferenceEdit = false;
                            Permissions.OperationBusGuideMiscDifferenceView = false;
                            Permissions.OperationBusGuideMiscDifferenceEdit = false;
                            Permissions.OperationBusGuideStepOnDifferenceView = false;
                            Permissions.OperationBusGuideStepOnDifferenceEdit = false;
                            Permissions.OperationBusBusDifferenceView = false;
                            Permissions.OperationBusBusDifferenceEdit = false;
                            Permissions.OperationBusStartView = false;
                            Permissions.OperationBusStartEdit = false;
                            Permissions.OperationBusTimeView = false;
                            Permissions.OperationBusTimeEdit = false;
                            Permissions.OperationBusServiceDateView = false;
                            Permissions.OperationBusServiceDateEdit = false;
                            Permissions.OperationBusStartCityView = false;
                            Permissions.OperationBusStartCityEdit = false;
                            Permissions.OperationBusStartCityFilter = false;
                            Permissions.OperationBusEndCityView = false;
                            Permissions.OperationBusEndCityEdit = false;
                            Permissions.OperationBusEndCityFilter = false;
                            Permissions.OperationBusBusCountView = false;
                            Permissions.OperationBusBusCountEdit = false;
                            Permissions.OperationBusBusSizeView = false;
                            Permissions.OperationBusBusSizeEdit = false;
                            Permissions.OperationBusPaxView = false;
                            Permissions.OperationBusPaxEdit = false;
                            Permissions.OperationBusEstPaxView = false;
                            Permissions.OperationBusEstPaxEdit = false;
                            Permissions.OperationBusServiceCodeView = false;
                            Permissions.OperationBusServiceCodeEdit = false;
                            Permissions.OperationBusServiceDetailView = false;
                            Permissions.OperationBusServiceDetailEdit = false;
                            Permissions.OperationBusSupplierView = false;
                            Permissions.OperationBusSupplierEdit = false;
                            Permissions.OperationBusSupplierFilter = false;
                            Permissions.OperationBusAirportView = false;
                            Permissions.OperationBusAirportEdit = false;
                            Permissions.OperationBusViewGroupContractView = false;
                            Permissions.OperationBusStatusView = false;
                            Permissions.OperationBusStatusEdit = false;
                            Permissions.OperationBusStatusFilter = false;
                            Permissions.OperationBusConfirmationView = false;
                            Permissions.OperationBusConfirmationEdit = false;
                            Permissions.OperationBusGuideView = false;
                            Permissions.OperationBusGuideEdit = false;
                            Permissions.OperationBusGuideSalaryView = false;
                            Permissions.OperationBusGuideSalaryEdit = false;
                            Permissions.OperationBusGuideMiscView = false;
                            Permissions.OperationBusGuideMiscEdit = false;
                            Permissions.OperationBusGuideStepOnView = false;
                            Permissions.OperationBusGuideStepOnEdit = false;
                            Permissions.OperationBusGuideSalaryPaidView = false;
                            Permissions.OperationBusGuideSalaryPaidEdit = false;
                            Permissions.OperationBusGuideAdditionalChargesView = false;
                            Permissions.OperationBusGuideAdditionalChargesEdit = false;
                            Permissions.OperationBusGuideSalaryInvoicePaidView = false;
                            Permissions.OperationBusGuideSalaryInvoicePaidEdit = false;
                            Permissions.OperationBusGuideTotalCostView = false;
                            Permissions.OperationBusGuideTotalCostEdit = false;
                            Permissions.OperationBusBusTotalCostView = false;
                            Permissions.OperationBusBusTotalCostEdit = false;
                            Permissions.OperationBusPriceView = false;
                            Permissions.OperationBusPriceEdit = false;
                            Permissions.OperationBusBusCurrencyView = false;
                            Permissions.OperationBusBusCurrencyEdit = false;
                            Permissions.OperationBusQuotaBusPriceView = false;
                            Permissions.OperationBusQuotaBusPriceEdit = false;
                            Permissions.OperationBusQuotaSupplierView = false;
                            Permissions.OperationBusQuotaSupplierEdit = false;
                            Permissions.OperationBusGuideCurrencyView = false;
                            Permissions.OperationBusGuideCurrencyEdit = false;
                            Permissions.OperationBusQuotaGuideSalaryView = false;
                            Permissions.OperationBusQuotaGuideSalaryEdit = false;
                            Permissions.OperationBusQuotaGuideMiscView = false;
                            Permissions.OperationBusQuotaGuideMiscEdit = false;
                            Permissions.OperationBusQuotaGuideStepOnView = false;
                            Permissions.OperationBusQuotaGuideStepOnEdit = false;
                            Permissions.OperationBusQuotaGuideView = false;
                            Permissions.OperationBusQuotaGuideEdit = false;
                            Permissions.OperationBusBusFirstPaymentView = false;
                            Permissions.OperationBusBusFirstPaymentEdit = false;
                            Permissions.OperationBusBusFirstPaymentMethodView = false;
                            Permissions.OperationBusBusFirstPaymentMethodEdit = false;
                            Permissions.OperationBusBusFirstPaymentDetailsView = false;
                            Permissions.OperationBusBusDateofFirstPaymentView = false;
                            Permissions.OperationBusBusDateofFirstPaymentEdit = false;
                            Permissions.OperationBusBusSecondPaymentView = false;
                            Permissions.OperationBusBusSecondPaymentEdit = false;
                            Permissions.OperationBusBusSecondPaymentMethodView = false;
                            Permissions.OperationBusBusSecondPaymentMethodEdit = false;
                            Permissions.OperationBusBusSecondPaymentDetailsView = false;
                            Permissions.OperationBusBusDateofSecondPaymentView = false;
                            Permissions.OperationBusBusDateofSecondPaymentEdit = false;
                            Permissions.OperationBusBusThirdPaymentView = false;
                            Permissions.OperationBusBusThirdPaymentEdit = false;
                            Permissions.OperationBusBusThirdPaymentMethodView = false;
                            Permissions.OperationBusBusThirdPaymentMethodEdit = false;
                            Permissions.OperationBusBusThirdPaymentDetailsView = false;
                            Permissions.OperationBusBusDateofThirdPaymentView = false;
                            Permissions.OperationBusBusDateofThirdPaymentEdit = false;
                            Permissions.OperationBusGuideFirstPaymentView = false;
                            Permissions.OperationBusGuideFirstPaymentEdit = false;
                            Permissions.OperationBusGuideFirstPaymentMethodView = false;
                            Permissions.OperationBusGuideFirstPaymentMethodEdit = false;
                            Permissions.OperationBusGuideFirstPaymentDetailsView = false;
                            Permissions.OperationBusGuideDateofFirstPaymentView = false;
                            Permissions.OperationBusGuideDateofFirstPaymentEdit = false;
                            Permissions.OperationBusGuideSecondPaymentView = false;
                            Permissions.OperationBusGuideSecondPaymentEdit = false;
                            Permissions.OperationBusGuideSecondPaymentMethodView = false;
                            Permissions.OperationBusGuideSecondPaymentMethodEdit = false;
                            Permissions.OperationBusGuideSecondPaymentDetailsView = false;
                            Permissions.OperationBusGuideDateofSecondPaymentView = false;
                            Permissions.OperationBusGuideDateofSecondPaymentEdit = false;
                            Permissions.OperationBusGuideThirdPaymentView = false;
                            Permissions.OperationBusGuideThirdPaymentEdit = false;
                            Permissions.OperationBusGuideThirdPaymentMethodView = false;
                            Permissions.OperationBusGuideThirdPaymentMethodEdit = false;
                            Permissions.OperationBusGuideThirdPaymentDetailsView = false;
                            Permissions.OperationBusGuideDateofThirdPaymentView = false;
                            Permissions.OperationBusGuideDateofThirdPaymentEdit = false;
                            Permissions.OperationBusNoteView = false;
                            Permissions.OperationBusNoteEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationRooms = (from room in Operation where room.ToolTabID == 9 select room).SingleOrDefault();
                if (OperationRooms == null)
                {
                    Permissions.OperationRoomFixedColumnCount = 0;
                    Permissions.OperationRoomGroupNameView = false;
                    Permissions.OperationRoomGroupNameEdit = false;
                    Permissions.OperationRoomGroupCodeView = false;
                    Permissions.OperationRoomGroupCodeEdit = false;
                    Permissions.OperationRoomPaxinRoomView = false;
                    Permissions.OperationRoomPaxinRoomEdit = false;
                    Permissions.OperationRoomDeleteView = false;
                    Permissions.OperationRoomPaxView = false;
                    Permissions.OperationRoomPaxEdit = false;
                    Permissions.OperationRoomRoomTypeView = false;
                    Permissions.OperationRoomRoomTypeEdit = false;
                    Permissions.OperationRoomRoomTypeFilter = false;
                    Permissions.OperationRoomTitleView = false;
                    Permissions.OperationRoomTitleEdit = false;
                    Permissions.OperationRoomTitleFilter = false;
                    Permissions.OperationRoomNamesView = false;
                    Permissions.OperationRoomNamesEdit = false;
                    Permissions.OperationRoomNotesView = false;
                    Permissions.OperationRoomNotesEdit = false;
                    Permissions.OperationRoomCustomerView = false;
                    Permissions.OperationRoomCustomerEdit = false;
                    Permissions.OperationRoomCustomerFilter = false;
                    Permissions.OperationRoomFBoardView = false;
                    Permissions.OperationRoomFBoardEdit = false;
                    Permissions.OperationRoomFBoardCountView = false;
                    Permissions.OperationRoomFBoardCountEdit = false;
                }
                else
                {
                    var OperationRoomsColumns = (from roomcolumn in OperationRooms.ToolTabColumns select roomcolumn.Permisionss).ToList();
                    if (OperationRoomsColumns == null)
                    {
                        Permissions.OperationRoomFixedColumnCount = 0;
                        Permissions.OperationRoomGroupNameView = false;
                        Permissions.OperationRoomGroupNameEdit = false;
                        Permissions.OperationRoomGroupCodeView = false;
                        Permissions.OperationRoomGroupCodeEdit = false;
                        Permissions.OperationRoomPaxinRoomView = false;
                        Permissions.OperationRoomPaxinRoomEdit = false;
                        Permissions.OperationRoomDeleteView = false;
                        Permissions.OperationRoomPaxView = false;
                        Permissions.OperationRoomPaxEdit = false;
                        Permissions.OperationRoomRoomTypeView = false;
                        Permissions.OperationRoomRoomTypeEdit = false;
                        Permissions.OperationRoomRoomTypeFilter = false;
                        Permissions.OperationRoomTitleView = false;
                        Permissions.OperationRoomTitleEdit = false;
                        Permissions.OperationRoomTitleFilter = false;
                        Permissions.OperationRoomNamesView = false;
                        Permissions.OperationRoomNamesEdit = false;
                        Permissions.OperationRoomNotesView = false;
                        Permissions.OperationRoomNotesEdit = false;
                        Permissions.OperationRoomCustomerView = false;
                        Permissions.OperationRoomCustomerEdit = false;
                        Permissions.OperationRoomCustomerFilter = false;
                        Permissions.OperationRoomFBoardView = false;
                        Permissions.OperationRoomFBoardEdit = false;
                        Permissions.OperationRoomFBoardCountView = false;
                        Permissions.OperationRoomFBoardCountEdit = false;
                    }
                    else
                    {
                        if (!OperationRoomsColumns.Any(perm => perm == null))
                        {
                            if (OperationRoomsColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationRoomFixedColumnCount = OperationRooms.PermFixCol != null ? Convert.ToInt32(OperationRooms.PermFixCol) : 0;
                                foreach (var room in OperationRoomsColumns)
                                {
                                    switch (room.PerColumnName)
                                    {
                                        case "Group Name":
                                            {
                                                Permissions.OperationRoomGroupNameView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomGroupNameEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomGroupNameLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Code":
                                            {
                                                Permissions.OperationRoomGroupCodeView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomGroupCodeEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomGroupCodeLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax in Room":
                                            {
                                                Permissions.OperationRoomPaxinRoomView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomPaxinRoomEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomPaxinRoomLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Delete":
                                            {
                                                Permissions.OperationRoomDeleteView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomDeleteLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationRoomPaxView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomPaxEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomPaxLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Room Type":
                                            {
                                                Permissions.OperationRoomRoomTypeView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomRoomTypeEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomRoomTypeFilter = room.PerHasFilter != null ? Convert.ToBoolean(room.PerHasFilter) : false;
                                                Permissions.OperationRoomRoomTypeLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Title":
                                            {
                                                Permissions.OperationRoomTitleView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomTitleEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomTitleFilter = room.PerHasFilter != null ? Convert.ToBoolean(room.PerHasFilter) : false;
                                                Permissions.OperationRoomTitleLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Names":
                                            {
                                                Permissions.OperationRoomNamesView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomNamesEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomNamesLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Notes":
                                            {
                                                Permissions.OperationRoomNotesView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomNotesEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomNotesLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationRoomCustomerView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomCustomerEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomCustomerFilter = room.PerHasFilter != null ? Convert.ToBoolean(room.PerHasFilter) : false;
                                                Permissions.OperationRoomCustomerLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "F. Board":
                                            {
                                                Permissions.OperationRoomFBoardView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomFBoardEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomFBoardLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "F. Board Count":
                                            {
                                                Permissions.OperationRoomFBoardCountView = room.PerColumnView != null ? Convert.ToBoolean(room.PerColumnView) : false;
                                                Permissions.OperationRoomFBoardCountEdit = room.PerColumnEdit != null ? Convert.ToBoolean(room.PerColumnEdit) : false;
                                                Permissions.OperationRoomFBoardCountLineNo = room.PerColumnLineNo != null ? Convert.ToInt32(room.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    }
                                }
                            }
                            else
                            {
                                Permissions.OperationRoomFixedColumnCount = 0;
                                Permissions.OperationRoomGroupNameView = false;
                                Permissions.OperationRoomGroupNameEdit = false;
                                Permissions.OperationRoomGroupCodeView = false;
                                Permissions.OperationRoomGroupCodeEdit = false;
                                Permissions.OperationRoomPaxinRoomView = false;
                                Permissions.OperationRoomPaxinRoomEdit = false;
                                Permissions.OperationRoomDeleteView = false;
                                Permissions.OperationRoomPaxView = false;
                                Permissions.OperationRoomPaxEdit = false;
                                Permissions.OperationRoomRoomTypeView = false;
                                Permissions.OperationRoomRoomTypeEdit = false;
                                Permissions.OperationRoomRoomTypeFilter = false;
                                Permissions.OperationRoomTitleView = false;
                                Permissions.OperationRoomTitleEdit = false;
                                Permissions.OperationRoomTitleFilter = false;
                                Permissions.OperationRoomNamesView = false;
                                Permissions.OperationRoomNamesEdit = false;
                                Permissions.OperationRoomNotesView = false;
                                Permissions.OperationRoomNotesEdit = false;
                                Permissions.OperationRoomCustomerView = false;
                                Permissions.OperationRoomCustomerEdit = false;
                                Permissions.OperationRoomCustomerFilter = false;
                                Permissions.OperationRoomFBoardView = false;
                                Permissions.OperationRoomFBoardEdit = false;
                                Permissions.OperationRoomFBoardCountView = false;
                                Permissions.OperationRoomFBoardCountEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationRoomFixedColumnCount = 0;
                            Permissions.OperationRoomGroupNameView = false;
                            Permissions.OperationRoomGroupNameEdit = false;
                            Permissions.OperationRoomGroupCodeView = false;
                            Permissions.OperationRoomGroupCodeEdit = false;
                            Permissions.OperationRoomPaxinRoomView = false;
                            Permissions.OperationRoomPaxinRoomEdit = false;
                            Permissions.OperationRoomDeleteView = false;
                            Permissions.OperationRoomPaxView = false;
                            Permissions.OperationRoomPaxEdit = false;
                            Permissions.OperationRoomRoomTypeView = false;
                            Permissions.OperationRoomRoomTypeEdit = false;
                            Permissions.OperationRoomRoomTypeFilter = false;
                            Permissions.OperationRoomTitleView = false;
                            Permissions.OperationRoomTitleEdit = false;
                            Permissions.OperationRoomTitleFilter = false;
                            Permissions.OperationRoomNamesView = false;
                            Permissions.OperationRoomNamesEdit = false;
                            Permissions.OperationRoomNotesView = false;
                            Permissions.OperationRoomNotesEdit = false;
                            Permissions.OperationRoomCustomerView = false;
                            Permissions.OperationRoomCustomerEdit = false;
                            Permissions.OperationRoomCustomerFilter = false;
                            Permissions.OperationRoomFBoardView = false;
                            Permissions.OperationRoomFBoardEdit = false;
                            Permissions.OperationRoomFBoardCountView = false;
                            Permissions.OperationRoomFBoardCountEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationHotels = (from hotel in Operation where hotel.ToolTabID == 8 select hotel).SingleOrDefault();
                if (OperationHotels == null)
                {
                    Permissions.OperationHotelFixedColumnCount = 0;
                    Permissions.OperationHotelGroupCodeView = false;
                    Permissions.OperationHotelGroupCodeEdit = false;
                    Permissions.OperationHotelGroupCodeFilter = false;
                    Permissions.OperationHotelCustomerView = false;
                    Permissions.OperationHotelCustomerEdit = false;
                    Permissions.OperationHotelCustomerFilter = false;
                    Permissions.OperationHotelDetailsView = false;
                    Permissions.OperationHotelGroupStatusView = false;
                    Permissions.OperationHotelGroupStatusEdit = false;
                    Permissions.OperationHotelGroupStatusFilter = false;
                    Permissions.OperationHotelGroupNameView = false;
                    Permissions.OperationHotelGroupNameEdit = false;
                    Permissions.OperationHotelGroupNameFilter = false;
                    Permissions.OperationHotelArrivalDateView = false;
                    Permissions.OperationHotelArrivalDateEdit = false;
                    Permissions.OperationHotelDepartureDateView = false;
                    Permissions.OperationHotelDepartureDateEdit = false;
                    Permissions.OperationHotelRoomCountView = false;
                    Permissions.OperationHotelRoomCountEdit = false;
                    Permissions.OperationHotelEmployeeView = false;
                    Permissions.OperationHotelEmployeeEdit = false;
                    Permissions.OperationHotelVendorStatusView = false;
                    Permissions.OperationHotelVendorStatusEdit = false;
                    Permissions.OperationHotelVendorStatusFilter = false;
                    Permissions.OperationHotelVendorNameView = false;
                    Permissions.OperationHotelVendorNameEdit = false;
                    Permissions.OperationHotelVendorNameFilter = false;
                    Permissions.OperationHotelCityView = false;
                    Permissions.OperationHotelCityEdit = false;
                    Permissions.OperationHotelCityFilter = false;
                    Permissions.OperationHotelAddressView = false;
                    Permissions.OperationHotelAddressEdit = false;
                    Permissions.OperationHotelPhoneView = false;
                    Permissions.OperationHotelPhoneEdit = false;
                    Permissions.OperationHotelNameOfContactPersonView = false;
                    Permissions.OperationHotelNameOfContactPersonEdit = false;
                    Permissions.OperationHotelEmailView = false;
                    Permissions.OperationHotelEmailEdit = false;
                    Permissions.OperationHotelViewContractView = false;
                    Permissions.OperationHotelViewGroupContractView = false;
                    Permissions.OperationHotelPaxView = false;
                    Permissions.OperationHotelPaxEdit = false;
                    Permissions.OperationHotelArrivalCityView = false;
                    Permissions.OperationHotelArrivalCityEdit = false;
                    Permissions.OperationHotelArrivalCityFilter = false;
                    Permissions.OperationHotelFileCompletationDaysView = false;
                    Permissions.OperationHotelFileCompletationDaysEdit = false;
                    Permissions.OperationHotelNightsView = false;
                    Permissions.OperationHotelNightsEdit = false;
                    Permissions.OperationHotelTotalCostView = false;
                    Permissions.OperationHotelTotalCostEdit = false;
                    Permissions.OperationHotelBreakDownTotalView = false;
                    Permissions.OperationHotelBreakDownTotalEdit = false;
                    Permissions.OperationHotelOutstandingBalanceView = false;
                    Permissions.OperationHotelOutstandingBalanceEdit = false;
                    Permissions.OperationHotelComAmountView = false;
                    Permissions.OperationHotelComAmountEdit = false;
                    Permissions.OperationHotelComDifferenceView = false;
                    Permissions.OperationHotelComDifferenceEdit = false;
                    Permissions.OperationHotelCurrencyView = false;
                    Permissions.OperationHotelCurrencyEdit = false;
                    Permissions.OperationHotelTotalInvoiceView = false;
                    Permissions.OperationHotelTotalInvoiceEdit = false;
                    Permissions.OperationHotelTotalPaidView = false;
                    Permissions.OperationHotelTotalPaidEdit = false;
                    Permissions.OperationHotelFirstPaymentView = false;
                    Permissions.OperationHotelFirstPaymentEdit = false;
                    Permissions.OperationHotelFirstPaymentMethodView = false;
                    Permissions.OperationHotelFirstPaymentMethodEdit = false;
                    Permissions.OperationHotelPayFirstDetailsView = false;
                    Permissions.OperationHotelDateofFirstPaymentView = false;
                    Permissions.OperationHotelDateofFirstPaymentEdit = false;
                    Permissions.OperationHotelSecondPaymentView = false;
                    Permissions.OperationHotelSecondPaymentEdit = false;
                    Permissions.OperationHotelSecondPaymentMethodView = false;
                    Permissions.OperationHotelSecondPaymentMethodEdit = false;
                    Permissions.OperationHotelPaySecondDetailsView = false;
                    Permissions.OperationHotelDateofSecondPaymentView = false;
                    Permissions.OperationHotelDateofSecondPaymentEdit = false;
                    Permissions.OperationHotelThirdPaymentView = false;
                    Permissions.OperationHotelThirdPaymentEdit = false;
                    Permissions.OperationHotelThirdPaymentMethodView = false;
                    Permissions.OperationHotelThirdPaymentMethodEdit = false;
                    Permissions.OperationHotelPayThirdDetailsView = false;
                    Permissions.OperationHotelDateofThirdPaymentView = false;
                    Permissions.OperationHotelDateofThirdPaymentEdit = false;
                    Permissions.OperationHotelRefundReceivedfromHotelView = false;
                    Permissions.OperationHotelRefundReceivedfromHotelEdit = false;
                    Permissions.OperationHotelTotalChargedView = false;
                    Permissions.OperationHotelTotalChargedEdit = false;
                    Permissions.OperationHotelAuthDiffView = false;
                    Permissions.OperationHotelAuthDiffEdit = false;
                    Permissions.OperationHotelAccountingMemoView = false;
                    Permissions.OperationHotelAccountingMemoEdit = false;
                    Permissions.OperationHotelCommissionStatusView = false;
                    Permissions.OperationHotelCommissionStatusEdit = false;
                    Permissions.OperationHotelComPercentView = false;
                    Permissions.OperationHotelComPercentEdit = false;
                    Permissions.OperationHotelComReceivedView = false;
                    Permissions.OperationHotelComReceivedEdit = false;
                    Permissions.OperationHotelComDateReceivedView = false;
                    Permissions.OperationHotelComDateReceivedEdit = false;
                    Permissions.OperationHotelCheckNumberView = false;
                    Permissions.OperationHotelCheckNumberEdit = false;
                    Permissions.OperationHotelCheckNumberAmountView = false;
                    Permissions.OperationHotelCheckNumberAmountEdit = false;
                    Permissions.OperationHotelSGLView = false;
                    Permissions.OperationHotelSGLEdit = false;
                    Permissions.OperationHotelSGLAmountView = false;
                    Permissions.OperationHotelSGLAmountEdit = false;
                    Permissions.OperationHotelDBLView = false;
                    Permissions.OperationHotelDBLEdit = false;
                    Permissions.OperationHotelDBLAmountView = false;
                    Permissions.OperationHotelDBLAmountEdit = false;
                    Permissions.OperationHotelTWNView = false;
                    Permissions.OperationHotelTWNEdit = false;
                    Permissions.OperationHotelTWNAmountView = false;
                    Permissions.OperationHotelTWNAmountEdit = false;
                    Permissions.OperationHotelTRPLView = false;
                    Permissions.OperationHotelTRPLEdit = false;
                    Permissions.OperationHotelTRPLAmountView = false;
                    Permissions.OperationHotelTRPLAmountEdit = false;
                    Permissions.OperationHotelQUDView = false;
                    Permissions.OperationHotelQUDEdit = false;
                    Permissions.OperationHotelQUDAmountView = false;
                    Permissions.OperationHotelQUDAmountEdit = false;
                    Permissions.OperationHotelGuideView = false;
                    Permissions.OperationHotelGuideEdit = false;
                    Permissions.OperationHotelGuideAmountView = false;
                    Permissions.OperationHotelGuideAmountEdit = false;
                    Permissions.OperationHotelDriverView = false;
                    Permissions.OperationHotelDriverEdit = false;
                    Permissions.OperationHotelDriverAmountView = false;
                    Permissions.OperationHotelDriverAmountEdit = false;
                    Permissions.OperationHotelTaxView = false;
                    Permissions.OperationHotelTaxEdit = false;
                    Permissions.OperationHotelOccTaxView = false;
                    Permissions.OperationHotelOccTaxEdit = false;
                    Permissions.OperationHotelCBFView = false;
                    Permissions.OperationHotelCBFEdit = false;
                    Permissions.OperationHotelABFView = false;
                    Permissions.OperationHotelABFEdit = false;
                    Permissions.OperationHotelBagView = false;
                    Permissions.OperationHotelBagEdit = false;
                    Permissions.OperationHotelCompView = false;
                    Permissions.OperationHotelCompEdit = false;
                    Permissions.OperationHotelExtraCostView = false;
                    Permissions.OperationHotelExtraCostEdit = false;
                    Permissions.OperationHotelXLTDateView = false;
                    Permissions.OperationHotelXLTDateEdit = false;
                    Permissions.OperationHotelDateFileReceivedView = false;
                    Permissions.OperationHotelDateFileReceivedEdit = false;
                    Permissions.OperationHotelDateFileCompletedView = false;
                    Permissions.OperationHotelDateFileCompletedEdit = false;
                    Permissions.OperationHotelDayofArrivalView = false;
                    Permissions.OperationHotelDayofArrivalEdit = false;
                    Permissions.OperationHotelDayofArrivalFilter = false;
                    Permissions.OperationHotelMonthofArrivalView = false;
                    Permissions.OperationHotelMonthofArrivalEdit = false;
                    Permissions.OperationHotelMonthofArrivalFilter = false;
                    Permissions.OperationHotelClientBookingCodeView = false;
                    Permissions.OperationHotelClientBookingCodeEdit = false;
                    Permissions.OperationHotelCheckInView = false;
                    Permissions.OperationHotelCheckInEdit = false;
                    Permissions.OperationHotelCheckOutView = false;
                    Permissions.OperationHotelCheckOutEdit = false;
                    Permissions.OperationHotelEstimatedNumberofRoomsView = false;
                    Permissions.OperationHotelEstimatedNumberofRoomsEdit = false;
                    Permissions.OperationHotelEstimatedNumberofRoomsFilter = false;
                    Permissions.OperationHotelEstimatedNumberofPaxView = false;
                    Permissions.OperationHotelEstimatedNumberofPaxEdit = false;
                    Permissions.OperationHotelQuotedRoomView = false;
                    Permissions.OperationHotelQuotedRoomEdit = false;
                    Permissions.OperationHotelQuotedTaxView = false;
                    Permissions.OperationHotelQuotedTaxEdit = false;
                    Permissions.OperationHotelQuotedOccTaxView = false;
                    Permissions.OperationHotelQuotedOccTaxEdit = false;
                    Permissions.OperationHotelQuotedBrkView = false;
                    Permissions.OperationHotelQuotedBrkEdit = false;
                    Permissions.OperationHotelQuotedLgView = false;
                    Permissions.OperationHotelQuotedLgEdit = false;
                    Permissions.OperationHotelQuotedNightView = false;
                    Permissions.OperationHotelQuotedNightEdit = false;
                    Permissions.OperationHotelQuotedNoteView = false;
                    Permissions.OperationHotelQuotedNoteEdit = false;
                    Permissions.OperationHotelConfView = false;
                    Permissions.OperationHotelConfEdit = false;
                    Permissions.OperationHotelQuotedVendorNameView = false;
                    Permissions.OperationHotelQuotedVendorNameEdit = false;
                    Permissions.OperationHotelTechView = false;
                    Permissions.OperationHotelTechEdit = false;
                    Permissions.OperationHotelNotesView = false;
                    Permissions.OperationHotelNotesEdit = false;
                    Permissions.OperationHotelLunchView = false;
                    Permissions.OperationHotelLunchEdit = false;
                    Permissions.OperationHotelDinnerView = false;
                    Permissions.OperationHotelDinnerEdit = false;
                }
                else
                {
                    var OperationHotelsColumns = (from hotelcolumn in OperationHotels.ToolTabColumns select hotelcolumn.Permisionss).ToList();
                    if (OperationHotelsColumns == null)
                    {
                        Permissions.OperationHotelFixedColumnCount = 0;
                        Permissions.OperationHotelGroupCodeView = false;
                        Permissions.OperationHotelGroupCodeEdit = false;
                        Permissions.OperationHotelGroupCodeFilter = false;
                        Permissions.OperationHotelCustomerView = false;
                        Permissions.OperationHotelCustomerEdit = false;
                        Permissions.OperationHotelCustomerFilter = false;
                        Permissions.OperationHotelDetailsView = false;
                        Permissions.OperationHotelGroupStatusView = false;
                        Permissions.OperationHotelGroupStatusEdit = false;
                        Permissions.OperationHotelGroupStatusFilter= false;
                        Permissions.OperationHotelGroupNameView = false;
                        Permissions.OperationHotelGroupNameEdit = false;
                        Permissions.OperationHotelGroupNameFilter = false;
                        Permissions.OperationHotelArrivalDateView = false;
                        Permissions.OperationHotelArrivalDateEdit = false;
                        Permissions.OperationHotelDepartureDateView = false;
                        Permissions.OperationHotelDepartureDateEdit = false;
                        Permissions.OperationHotelRoomCountView = false;
                        Permissions.OperationHotelRoomCountEdit = false;
                        Permissions.OperationHotelEmployeeView = false;
                        Permissions.OperationHotelEmployeeEdit = false;
                        Permissions.OperationHotelVendorStatusView = false;
                        Permissions.OperationHotelVendorStatusEdit = false;
                        Permissions.OperationHotelVendorStatusFilter = false;
                        Permissions.OperationHotelVendorNameView = false;
                        Permissions.OperationHotelVendorNameEdit = false;
                        Permissions.OperationHotelVendorNameFilter = false;
                        Permissions.OperationHotelCityView = false;
                        Permissions.OperationHotelCityEdit = false;
                        Permissions.OperationHotelCityFilter = false;
                        Permissions.OperationHotelAddressView = false;
                        Permissions.OperationHotelAddressEdit = false;
                        Permissions.OperationHotelPhoneView = false;
                        Permissions.OperationHotelPhoneEdit = false;
                        Permissions.OperationHotelNameOfContactPersonView = false;
                        Permissions.OperationHotelNameOfContactPersonEdit = false;
                        Permissions.OperationHotelEmailView = false;
                        Permissions.OperationHotelEmailEdit = false;
                        Permissions.OperationHotelViewContractView = false;
                        Permissions.OperationHotelViewGroupContractView = false;
                        Permissions.OperationHotelPaxView = false;
                        Permissions.OperationHotelPaxEdit = false;
                        Permissions.OperationHotelArrivalCityView = false;
                        Permissions.OperationHotelArrivalCityEdit = false;
                        Permissions.OperationHotelArrivalCityFilter = false;
                        Permissions.OperationHotelFileCompletationDaysView = false;
                        Permissions.OperationHotelFileCompletationDaysEdit = false;
                        Permissions.OperationHotelNightsView = false;
                        Permissions.OperationHotelNightsEdit = false;
                        Permissions.OperationHotelTotalCostView = false;
                        Permissions.OperationHotelTotalCostEdit = false;
                        Permissions.OperationHotelBreakDownTotalView = false;
                        Permissions.OperationHotelBreakDownTotalEdit = false;
                        Permissions.OperationHotelOutstandingBalanceView = false;
                        Permissions.OperationHotelOutstandingBalanceEdit = false;
                        Permissions.OperationHotelComAmountView = false;
                        Permissions.OperationHotelComAmountEdit = false;
                        Permissions.OperationHotelComDifferenceView = false;
                        Permissions.OperationHotelComDifferenceEdit = false;
                        Permissions.OperationHotelCurrencyView = false;
                        Permissions.OperationHotelCurrencyEdit = false;
                        Permissions.OperationHotelTotalInvoiceView = false;
                        Permissions.OperationHotelTotalInvoiceEdit = false;
                        Permissions.OperationHotelTotalPaidView = false;
                        Permissions.OperationHotelTotalPaidEdit = false;
                        Permissions.OperationHotelFirstPaymentView = false;
                        Permissions.OperationHotelFirstPaymentEdit = false;
                        Permissions.OperationHotelFirstPaymentMethodView = false;
                        Permissions.OperationHotelFirstPaymentMethodEdit = false;
                        Permissions.OperationHotelPayFirstDetailsView = false;
                        Permissions.OperationHotelDateofFirstPaymentView = false;
                        Permissions.OperationHotelDateofFirstPaymentEdit = false;
                        Permissions.OperationHotelSecondPaymentView = false;
                        Permissions.OperationHotelSecondPaymentEdit = false;
                        Permissions.OperationHotelSecondPaymentMethodView = false;
                        Permissions.OperationHotelSecondPaymentMethodEdit = false;
                        Permissions.OperationHotelPaySecondDetailsView = false;
                        Permissions.OperationHotelDateofSecondPaymentView = false;
                        Permissions.OperationHotelDateofSecondPaymentEdit = false;
                        Permissions.OperationHotelThirdPaymentView = false;
                        Permissions.OperationHotelThirdPaymentEdit = false;
                        Permissions.OperationHotelThirdPaymentMethodView = false;
                        Permissions.OperationHotelThirdPaymentMethodEdit = false;
                        Permissions.OperationHotelPayThirdDetailsView = false;
                        Permissions.OperationHotelDateofThirdPaymentView = false;
                        Permissions.OperationHotelDateofThirdPaymentEdit = false;
                        Permissions.OperationHotelRefundReceivedfromHotelView = false;
                        Permissions.OperationHotelRefundReceivedfromHotelEdit = false;
                        Permissions.OperationHotelTotalChargedView = false;
                        Permissions.OperationHotelTotalChargedEdit = false;
                        Permissions.OperationHotelAuthDiffView = false;
                        Permissions.OperationHotelAuthDiffEdit = false;
                        Permissions.OperationHotelAccountingMemoView = false;
                        Permissions.OperationHotelAccountingMemoEdit = false;
                        Permissions.OperationHotelCommissionStatusView = false;
                        Permissions.OperationHotelCommissionStatusEdit = false;
                        Permissions.OperationHotelComPercentView = false;
                        Permissions.OperationHotelComPercentEdit = false;
                        Permissions.OperationHotelComReceivedView = false;
                        Permissions.OperationHotelComReceivedEdit = false;
                        Permissions.OperationHotelComDateReceivedView = false;
                        Permissions.OperationHotelComDateReceivedEdit = false;
                        Permissions.OperationHotelCheckNumberView = false;
                        Permissions.OperationHotelCheckNumberEdit = false;
                        Permissions.OperationHotelCheckNumberAmountView = false;
                        Permissions.OperationHotelCheckNumberAmountEdit = false;
                        Permissions.OperationHotelSGLView = false;
                        Permissions.OperationHotelSGLEdit = false;
                        Permissions.OperationHotelSGLAmountView = false;
                        Permissions.OperationHotelSGLAmountEdit = false;
                        Permissions.OperationHotelDBLView = false;
                        Permissions.OperationHotelDBLEdit = false;
                        Permissions.OperationHotelDBLAmountView = false;
                        Permissions.OperationHotelDBLAmountEdit = false;
                        Permissions.OperationHotelTWNView = false;
                        Permissions.OperationHotelTWNEdit = false;
                        Permissions.OperationHotelTWNAmountView = false;
                        Permissions.OperationHotelTWNAmountEdit = false;
                        Permissions.OperationHotelTRPLView = false;
                        Permissions.OperationHotelTRPLEdit = false;
                        Permissions.OperationHotelTRPLAmountView = false;
                        Permissions.OperationHotelTRPLAmountEdit = false;
                        Permissions.OperationHotelQUDView = false;
                        Permissions.OperationHotelQUDEdit = false;
                        Permissions.OperationHotelQUDAmountView = false;
                        Permissions.OperationHotelQUDAmountEdit = false;
                        Permissions.OperationHotelGuideView = false;
                        Permissions.OperationHotelGuideEdit = false;
                        Permissions.OperationHotelGuideAmountView = false;
                        Permissions.OperationHotelGuideAmountEdit = false;
                        Permissions.OperationHotelDriverView = false;
                        Permissions.OperationHotelDriverEdit = false;
                        Permissions.OperationHotelDriverAmountView = false;
                        Permissions.OperationHotelDriverAmountEdit = false;
                        Permissions.OperationHotelTaxView = false;
                        Permissions.OperationHotelTaxEdit = false;
                        Permissions.OperationHotelOccTaxView = false;
                        Permissions.OperationHotelOccTaxEdit = false;
                        Permissions.OperationHotelCBFView = false;
                        Permissions.OperationHotelCBFEdit = false;
                        Permissions.OperationHotelABFView = false;
                        Permissions.OperationHotelABFEdit = false;
                        Permissions.OperationHotelBagView = false;
                        Permissions.OperationHotelBagEdit = false;
                        Permissions.OperationHotelCompView = false;
                        Permissions.OperationHotelCompEdit = false;
                        Permissions.OperationHotelExtraCostView = false;
                        Permissions.OperationHotelExtraCostEdit = false;
                        Permissions.OperationHotelXLTDateView = false;
                        Permissions.OperationHotelXLTDateEdit = false;
                        Permissions.OperationHotelDateFileReceivedView = false;
                        Permissions.OperationHotelDateFileReceivedEdit = false;
                        Permissions.OperationHotelDateFileCompletedView = false;
                        Permissions.OperationHotelDateFileCompletedEdit = false;
                        Permissions.OperationHotelDayofArrivalView = false;
                        Permissions.OperationHotelDayofArrivalEdit = false;
                        Permissions.OperationHotelDayofArrivalFilter = false;
                        Permissions.OperationHotelMonthofArrivalView = false;
                        Permissions.OperationHotelMonthofArrivalEdit = false;
                        Permissions.OperationHotelMonthofArrivalFilter = false;
                        Permissions.OperationHotelClientBookingCodeView = false;
                        Permissions.OperationHotelClientBookingCodeEdit = false;
                        Permissions.OperationHotelCheckInView = false;
                        Permissions.OperationHotelCheckInEdit = false;
                        Permissions.OperationHotelCheckOutView = false;
                        Permissions.OperationHotelCheckOutEdit = false;
                        Permissions.OperationHotelEstimatedNumberofRoomsView = false;
                        Permissions.OperationHotelEstimatedNumberofRoomsEdit = false;
                        Permissions.OperationHotelEstimatedNumberofRoomsFilter = false;
                        Permissions.OperationHotelEstimatedNumberofPaxView = false;
                        Permissions.OperationHotelEstimatedNumberofPaxEdit = false;
                        Permissions.OperationHotelQuotedRoomView = false;
                        Permissions.OperationHotelQuotedRoomEdit = false;
                        Permissions.OperationHotelQuotedTaxView = false;
                        Permissions.OperationHotelQuotedTaxEdit = false;
                        Permissions.OperationHotelQuotedOccTaxView = false;
                        Permissions.OperationHotelQuotedOccTaxEdit = false;
                        Permissions.OperationHotelQuotedBrkView = false;
                        Permissions.OperationHotelQuotedBrkEdit = false;
                        Permissions.OperationHotelQuotedLgView = false;
                        Permissions.OperationHotelQuotedLgEdit = false;
                        Permissions.OperationHotelQuotedNightView = false;
                        Permissions.OperationHotelQuotedNightEdit = false;
                        Permissions.OperationHotelQuotedNoteView = false;
                        Permissions.OperationHotelQuotedNoteEdit = false;
                        Permissions.OperationHotelConfView = false;
                        Permissions.OperationHotelConfEdit = false;
                        Permissions.OperationHotelQuotedVendorNameView = false;
                        Permissions.OperationHotelQuotedVendorNameEdit = false;
                        Permissions.OperationHotelTechView = false;
                        Permissions.OperationHotelTechEdit = false;
                        Permissions.OperationHotelNotesView = false;
                        Permissions.OperationHotelNotesEdit = false;
                        Permissions.OperationHotelLunchView = false;
                        Permissions.OperationHotelLunchEdit = false;
                        Permissions.OperationHotelDinnerView = false;
                        Permissions.OperationHotelDinnerEdit = false;
                    }
                    else
                    {
                        if (!OperationHotelsColumns.Any(perm => perm == null))
                        {
                            if (OperationHotelsColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationHotelFixedColumnCount = OperationHotels.PermFixCol != null ? Convert.ToInt32(OperationHotels.PermFixCol) : 0;
                                foreach (var hotel in OperationHotelsColumns)
                                {
                                    switch (hotel.PerColumnName)
                                    {
                                        case "Group Code":
                                            {
                                                Permissions.OperationHotelGroupCodeView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelGroupCodeEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelGroupCodeFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelGroupCodeLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.OperationHotelCustomerView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCustomerEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCustomerFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelCustomerLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Details":
                                            {
                                                Permissions.OperationHotelDetailsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDetailsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Status":
                                            {
                                                Permissions.OperationHotelGroupStatusView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelGroupStatusEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelGroupStatusFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelGroupStatusLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Group Name":
                                            {
                                                Permissions.OperationHotelGroupNameView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelGroupNameEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelGroupNameFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelGroupNameLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Arrival Date":
                                            {
                                                Permissions.OperationHotelArrivalDateView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelArrivalDateEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelArrivalDateLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Departure Date":
                                            {
                                                Permissions.OperationHotelDepartureDateView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDepartureDateEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDepartureDateLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Room Count":
                                            {
                                                Permissions.OperationHotelRoomCountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelRoomCountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelRoomCountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Employee":
                                            {
                                                Permissions.OperationHotelEmployeeView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelEmployeeEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelEmployeeLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Vendor Status":
                                            {
                                                Permissions.OperationHotelVendorStatusView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelVendorStatusEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelVendorStatusFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelVendorStatusLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Vendor Name":
                                            {
                                                Permissions.OperationHotelVendorNameView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelVendorNameEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelVendorNameFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelVendorNameLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "City":
                                            {
                                                Permissions.OperationHotelCityView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCityEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCityFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelCityLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Address":
                                            {
                                                Permissions.OperationHotelAddressView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelAddressEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelAddressLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Phone":
                                            {
                                                Permissions.OperationHotelPhoneView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelPhoneEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelPhoneLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Name Of Contact Person":
                                            {
                                                Permissions.OperationHotelNameOfContactPersonView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelNameOfContactPersonEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelNameOfContactPersonLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Email":
                                            {
                                                Permissions.OperationHotelEmailView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelEmailEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelEmailLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "View Contract":
                                            {
                                                Permissions.OperationHotelViewContractView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelViewContractLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "View Group Contract":
                                            {
                                                Permissions.OperationHotelViewGroupContractView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelViewGroupContractLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pax":
                                            {
                                                Permissions.OperationHotelPaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelPaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelPaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Arrival City":
                                            {
                                                Permissions.OperationHotelArrivalCityView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelArrivalCityEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelArrivalCityFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelArrivalCityLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "File Completation Days":
                                            {
                                                Permissions.OperationHotelFileCompletationDaysView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelFileCompletationDaysEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelFileCompletationDaysLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Nights":
                                            {
                                                Permissions.OperationHotelNightsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelNightsEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelNightsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationHotelTotalCostView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTotalCostEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTotalCostLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Break Down Total":
                                            {
                                                Permissions.OperationHotelBreakDownTotalView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelBreakDownTotalEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelBreakDownTotalLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Outstanding Balance":
                                            {
                                                Permissions.OperationHotelOutstandingBalanceView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelOutstandingBalanceEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelOutstandingBalanceLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Com Amount":
                                            {
                                                Permissions.OperationHotelComAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelComAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelComAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Com Difference":
                                            {
                                                Permissions.OperationHotelComDifferenceView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelComDifferenceEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelComDifferenceLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Currency":
                                            {
                                                Permissions.OperationHotelCurrencyView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCurrencyEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCurrencyLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Invoice":
                                            {
                                                Permissions.OperationHotelTotalInvoiceView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTotalInvoiceEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTotalInvoiceLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Paid":
                                            {
                                                Permissions.OperationHotelTotalPaidView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTotalPaidEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTotalPaidLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment":
                                            {
                                                Permissions.OperationHotelFirstPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelFirstPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelFirstPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "1st Payment Method":
                                            {
                                                Permissions.OperationHotelFirstPaymentMethodView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelFirstPaymentMethodEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelFirstPaymentMethodLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 1 Details":
                                            {
                                                Permissions.OperationHotelPayFirstDetailsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelPayFirstDetailsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 1st Payment":
                                            {
                                                Permissions.OperationHotelDateofFirstPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDateofFirstPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDateofFirstPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment":
                                            {
                                                Permissions.OperationHotelSecondPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelSecondPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelSecondPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "2nd Payment Method":
                                            {
                                                Permissions.OperationHotelSecondPaymentMethodView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelSecondPaymentMethodEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelSecondPaymentMethodLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 2 Details":
                                            {
                                                Permissions.OperationHotelPaySecondDetailsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelPaySecondDetailsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 2nd Payment":
                                            {
                                                Permissions.OperationHotelDateofSecondPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDateofSecondPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDateofSecondPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment":
                                            {
                                                Permissions.OperationHotelThirdPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelThirdPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelThirdPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "3rd Payment Method":
                                            {
                                                Permissions.OperationHotelThirdPaymentMethodView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelThirdPaymentMethodEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelThirdPaymentMethodLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Pay 3 Details":
                                            {
                                                Permissions.OperationHotelPayThirdDetailsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelPayThirdDetailsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date of 3rd Payment":
                                            {
                                                Permissions.OperationHotelDateofThirdPaymentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDateofThirdPaymentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDateofThirdPaymentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Refund Received from Hotel":
                                            {
                                                Permissions.OperationHotelRefundReceivedfromHotelView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelRefundReceivedfromHotelEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelRefundReceivedfromHotelLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Total Charged":
                                            {
                                                Permissions.OperationHotelTotalChargedView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTotalChargedEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTotalChargedLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Auth. Diff":
                                            {
                                                Permissions.OperationHotelAuthDiffView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelAuthDiffEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelAuthDiffLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Accounting Memo":
                                            {
                                                Permissions.OperationHotelAccountingMemoView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelAccountingMemoEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelAccountingMemoLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Commission Status":
                                            {
                                                Permissions.OperationHotelCommissionStatusView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCommissionStatusEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCommissionStatusLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Com %":
                                            {
                                                Permissions.OperationHotelComPercentView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelComPercentEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelComPercentLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Com Received":
                                            {
                                                Permissions.OperationHotelComReceivedView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelComReceivedEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelComReceivedLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Com Date Received":
                                            {
                                                Permissions.OperationHotelComDateReceivedView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelComDateReceivedEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelComDateReceivedLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Check Number":
                                            {
                                                Permissions.OperationHotelCheckNumberView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCheckNumberEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCheckNumberLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Check Number $":
                                            {
                                                Permissions.OperationHotelCheckNumberAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCheckNumberAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCheckNumberAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "SGL":
                                            {
                                                Permissions.OperationHotelSGLView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelSGLEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelSGLLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "SGL $":
                                            {
                                                Permissions.OperationHotelSGLAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelSGLAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelSGLAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "DBL":
                                            {
                                                Permissions.OperationHotelDBLView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDBLEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDBLLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "DBL $":
                                            {
                                                Permissions.OperationHotelDBLAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDBLAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDBLAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "TWN":
                                            {
                                                Permissions.OperationHotelTWNView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTWNEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTWNLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "TWN $":
                                            {
                                                Permissions.OperationHotelTWNAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTWNAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTWNAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "TRPL":
                                            {
                                                Permissions.OperationHotelTRPLView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTRPLEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTRPLLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "TRPL $":
                                            {
                                                Permissions.OperationHotelTRPLAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTRPLAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTRPLAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "QUD":
                                            {
                                                Permissions.OperationHotelQUDView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQUDEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQUDLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "QUD $":
                                            {
                                                Permissions.OperationHotelQUDAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQUDAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQUDAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide":
                                            {
                                                Permissions.OperationHotelGuideView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelGuideEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelGuideLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Guide $":
                                            {
                                                Permissions.OperationHotelGuideAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelGuideAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelGuideAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Driver":
                                            {
                                                Permissions.OperationHotelDriverView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDriverEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDriverLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Driver $":
                                            {
                                                Permissions.OperationHotelDriverAmountView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDriverAmountEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDriverAmountLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Tax":
                                            {
                                                Permissions.OperationHotelTaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Occ Tax":
                                            {
                                                Permissions.OperationHotelOccTaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelOccTaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelOccTaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "CBF":
                                            {
                                                Permissions.OperationHotelCBFView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCBFEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCBFLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "ABF":
                                            {
                                                Permissions.OperationHotelABFView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelABFEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelABFLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Bag":
                                            {
                                                Permissions.OperationHotelBagView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelBagEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelBagLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Comp":
                                            {
                                                Permissions.OperationHotelCompView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCompEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCompLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Extra Cost":
                                            {
                                                Permissions.OperationHotelExtraCostView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelExtraCostEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelExtraCostLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "XLT Date":
                                            {
                                                Permissions.OperationHotelXLTDateView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelXLTDateEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelXLTDateLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date File Received":
                                            {
                                                Permissions.OperationHotelDateFileReceivedView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDateFileReceivedEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDateFileReceivedLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Date File Completed":
                                            {
                                                Permissions.OperationHotelDateFileCompletedView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDateFileCompletedEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDateFileCompletedLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Day of Arrival":
                                            {
                                                Permissions.OperationHotelDayofArrivalView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDayofArrivalEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDayofArrivalFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelDayofArrivalLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Month of Arrival":
                                            {
                                                Permissions.OperationHotelMonthofArrivalView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelMonthofArrivalEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelMonthofArrivalFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelMonthofArrivalLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Client Booking Code":
                                            {
                                                Permissions.OperationHotelClientBookingCodeView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelClientBookingCodeEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelClientBookingCodeLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Check In":
                                            {
                                                Permissions.OperationHotelCheckInView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCheckInEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCheckInLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Check Out":
                                            {
                                                Permissions.OperationHotelCheckOutView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelCheckOutEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelCheckOutLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Estimated # of Rooms":
                                            {
                                                Permissions.OperationHotelEstimatedNumberofRoomsView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelEstimatedNumberofRoomsEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelEstimatedNumberofRoomsFilter = hotel.PerHasFilter != null ? Convert.ToBoolean(hotel.PerHasFilter) : false;
                                                Permissions.OperationHotelEstimatedNumberofRoomsLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Estimated # of Pax":
                                            {
                                                Permissions.OperationHotelEstimatedNumberofPaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelEstimatedNumberofPaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelEstimatedNumberofPaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Room":
                                            {
                                                Permissions.OperationHotelQuotedRoomView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedRoomEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedRoomLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Tax":
                                            {
                                                Permissions.OperationHotelQuotedTaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedTaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedTaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted T/N":
                                            {
                                                Permissions.OperationHotelQuotedOccTaxView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedOccTaxEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedOccTaxLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Brk":
                                            {
                                                Permissions.OperationHotelQuotedBrkView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedBrkEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedBrkLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Lg":
                                            {
                                                Permissions.OperationHotelQuotedLgView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedLgEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedLgLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Night":
                                            {
                                                Permissions.OperationHotelQuotedNightView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedNightEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedNightLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Note":
                                            {
                                                Permissions.OperationHotelQuotedNoteView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedNoteEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedNoteLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Conf":
                                            {
                                                Permissions.OperationHotelConfView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelConfEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelConfLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Quoted Vendor Name":
                                            {
                                                Permissions.OperationHotelQuotedVendorNameView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelQuotedVendorNameEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelQuotedVendorNameLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Tech":
                                            {
                                                Permissions.OperationHotelTechView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelTechEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelTechLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Notes":
                                            {
                                                Permissions.OperationHotelNotesView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelNotesEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelNotesLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Lunch":
                                            {
                                                Permissions.OperationHotelLunchView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelLunchEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelLunchLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        case "Dinner":
                                            {
                                                Permissions.OperationHotelDinnerView = hotel.PerColumnView != null ? Convert.ToBoolean(hotel.PerColumnView) : false;
                                                Permissions.OperationHotelDinnerEdit = hotel.PerColumnEdit != null ? Convert.ToBoolean(hotel.PerColumnEdit) : false;
                                                Permissions.OperationHotelDinnerLineNo = hotel.PerColumnLineNo != null ? Convert.ToInt32(hotel.PerColumnLineNo) : 0;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationHotelFixedColumnCount = 0;
                                Permissions.OperationHotelGroupCodeView = false;
                                Permissions.OperationHotelGroupCodeEdit = false;
                                Permissions.OperationHotelGroupCodeFilter = false;
                                Permissions.OperationHotelCustomerView = false;
                                Permissions.OperationHotelCustomerEdit = false;
                                Permissions.OperationHotelCustomerFilter = false;
                                Permissions.OperationHotelDetailsView = false;
                                Permissions.OperationHotelGroupStatusView = false;
                                Permissions.OperationHotelGroupStatusEdit = false;
                                Permissions.OperationHotelGroupStatusFilter = false;
                                Permissions.OperationHotelGroupNameView = false;
                                Permissions.OperationHotelGroupNameEdit = false;
                                Permissions.OperationHotelGroupNameFilter = false;
                                Permissions.OperationHotelArrivalDateView = false;
                                Permissions.OperationHotelArrivalDateEdit = false;
                                Permissions.OperationHotelDepartureDateView = false;
                                Permissions.OperationHotelDepartureDateEdit = false;
                                Permissions.OperationHotelRoomCountView = false;
                                Permissions.OperationHotelRoomCountEdit = false;
                                Permissions.OperationHotelEmployeeView = false;
                                Permissions.OperationHotelEmployeeEdit = false;
                                Permissions.OperationHotelVendorStatusView = false;
                                Permissions.OperationHotelVendorStatusEdit = false;
                                Permissions.OperationHotelVendorStatusFilter = false;
                                Permissions.OperationHotelVendorNameView = false;
                                Permissions.OperationHotelVendorNameEdit = false;
                                Permissions.OperationHotelVendorNameFilter = false;
                                Permissions.OperationHotelCityView = false;
                                Permissions.OperationHotelCityEdit = false;
                                Permissions.OperationHotelCityFilter = false;
                                Permissions.OperationHotelAddressView = false;
                                Permissions.OperationHotelAddressEdit = false;
                                Permissions.OperationHotelPhoneView = false;
                                Permissions.OperationHotelPhoneEdit = false;
                                Permissions.OperationHotelNameOfContactPersonView = false;
                                Permissions.OperationHotelNameOfContactPersonEdit = false;
                                Permissions.OperationHotelEmailView = false;
                                Permissions.OperationHotelEmailEdit = false;
                                Permissions.OperationHotelViewContractView = false;
                                Permissions.OperationHotelViewGroupContractView = false;
                                Permissions.OperationHotelPaxView = false;
                                Permissions.OperationHotelPaxEdit = false;
                                Permissions.OperationHotelArrivalCityView = false;
                                Permissions.OperationHotelArrivalCityEdit = false;
                                Permissions.OperationHotelArrivalCityFilter = false;
                                Permissions.OperationHotelFileCompletationDaysView = false;
                                Permissions.OperationHotelFileCompletationDaysEdit = false;
                                Permissions.OperationHotelNightsView = false;
                                Permissions.OperationHotelNightsEdit = false;
                                Permissions.OperationHotelTotalCostView = false;
                                Permissions.OperationHotelTotalCostEdit = false;
                                Permissions.OperationHotelBreakDownTotalView = false;
                                Permissions.OperationHotelBreakDownTotalEdit = false;
                                Permissions.OperationHotelOutstandingBalanceView = false;
                                Permissions.OperationHotelOutstandingBalanceEdit = false;
                                Permissions.OperationHotelComAmountView = false;
                                Permissions.OperationHotelComAmountEdit = false;
                                Permissions.OperationHotelComDifferenceView = false;
                                Permissions.OperationHotelComDifferenceEdit = false;
                                Permissions.OperationHotelCurrencyView = false;
                                Permissions.OperationHotelCurrencyEdit = false;
                                Permissions.OperationHotelTotalInvoiceView = false;
                                Permissions.OperationHotelTotalInvoiceEdit = false;
                                Permissions.OperationHotelTotalPaidView = false;
                                Permissions.OperationHotelTotalPaidEdit = false;
                                Permissions.OperationHotelFirstPaymentView = false;
                                Permissions.OperationHotelFirstPaymentEdit = false;
                                Permissions.OperationHotelFirstPaymentMethodView = false;
                                Permissions.OperationHotelFirstPaymentMethodEdit = false;
                                Permissions.OperationHotelPayFirstDetailsView = false;
                                Permissions.OperationHotelDateofFirstPaymentView = false;
                                Permissions.OperationHotelDateofFirstPaymentEdit = false;
                                Permissions.OperationHotelSecondPaymentView = false;
                                Permissions.OperationHotelSecondPaymentEdit = false;
                                Permissions.OperationHotelSecondPaymentMethodView = false;
                                Permissions.OperationHotelSecondPaymentMethodEdit = false;
                                Permissions.OperationHotelPaySecondDetailsView = false;
                                Permissions.OperationHotelDateofSecondPaymentView = false;
                                Permissions.OperationHotelDateofSecondPaymentEdit = false;
                                Permissions.OperationHotelThirdPaymentView = false;
                                Permissions.OperationHotelThirdPaymentEdit = false;
                                Permissions.OperationHotelThirdPaymentMethodView = false;
                                Permissions.OperationHotelThirdPaymentMethodEdit = false;
                                Permissions.OperationHotelPayThirdDetailsView = false;
                                Permissions.OperationHotelDateofThirdPaymentView = false;
                                Permissions.OperationHotelDateofThirdPaymentEdit = false;
                                Permissions.OperationHotelRefundReceivedfromHotelView = false;
                                Permissions.OperationHotelRefundReceivedfromHotelEdit = false;
                                Permissions.OperationHotelTotalChargedView = false;
                                Permissions.OperationHotelTotalChargedEdit = false;
                                Permissions.OperationHotelAuthDiffView = false;
                                Permissions.OperationHotelAuthDiffEdit = false;
                                Permissions.OperationHotelAccountingMemoView = false;
                                Permissions.OperationHotelAccountingMemoEdit = false;
                                Permissions.OperationHotelCommissionStatusView = false;
                                Permissions.OperationHotelCommissionStatusEdit = false;
                                Permissions.OperationHotelComPercentView = false;
                                Permissions.OperationHotelComPercentEdit = false;
                                Permissions.OperationHotelComReceivedView = false;
                                Permissions.OperationHotelComReceivedEdit = false;
                                Permissions.OperationHotelComDateReceivedView = false;
                                Permissions.OperationHotelComDateReceivedEdit = false;
                                Permissions.OperationHotelCheckNumberView = false;
                                Permissions.OperationHotelCheckNumberEdit = false;
                                Permissions.OperationHotelCheckNumberAmountView = false;
                                Permissions.OperationHotelCheckNumberAmountEdit = false;
                                Permissions.OperationHotelSGLView = false;
                                Permissions.OperationHotelSGLEdit = false;
                                Permissions.OperationHotelSGLAmountView = false;
                                Permissions.OperationHotelSGLAmountEdit = false;
                                Permissions.OperationHotelDBLView = false;
                                Permissions.OperationHotelDBLEdit = false;
                                Permissions.OperationHotelDBLAmountView = false;
                                Permissions.OperationHotelDBLAmountEdit = false;
                                Permissions.OperationHotelTWNView = false;
                                Permissions.OperationHotelTWNEdit = false;
                                Permissions.OperationHotelTWNAmountView = false;
                                Permissions.OperationHotelTWNAmountEdit = false;
                                Permissions.OperationHotelTRPLView = false;
                                Permissions.OperationHotelTRPLEdit = false;
                                Permissions.OperationHotelTRPLAmountView = false;
                                Permissions.OperationHotelTRPLAmountEdit = false;
                                Permissions.OperationHotelQUDView = false;
                                Permissions.OperationHotelQUDEdit = false;
                                Permissions.OperationHotelQUDAmountView = false;
                                Permissions.OperationHotelQUDAmountEdit = false;
                                Permissions.OperationHotelGuideView = false;
                                Permissions.OperationHotelGuideEdit = false;
                                Permissions.OperationHotelGuideAmountView = false;
                                Permissions.OperationHotelGuideAmountEdit = false;
                                Permissions.OperationHotelDriverView = false;
                                Permissions.OperationHotelDriverEdit = false;
                                Permissions.OperationHotelDriverAmountView = false;
                                Permissions.OperationHotelDriverAmountEdit = false;
                                Permissions.OperationHotelTaxView = false;
                                Permissions.OperationHotelTaxEdit = false;
                                Permissions.OperationHotelOccTaxView = false;
                                Permissions.OperationHotelOccTaxEdit = false;
                                Permissions.OperationHotelCBFView = false;
                                Permissions.OperationHotelCBFEdit = false;
                                Permissions.OperationHotelABFView = false;
                                Permissions.OperationHotelABFEdit = false;
                                Permissions.OperationHotelBagView = false;
                                Permissions.OperationHotelBagEdit = false;
                                Permissions.OperationHotelCompView = false;
                                Permissions.OperationHotelCompEdit = false;
                                Permissions.OperationHotelExtraCostView = false;
                                Permissions.OperationHotelExtraCostEdit = false;
                                Permissions.OperationHotelXLTDateView = false;
                                Permissions.OperationHotelXLTDateEdit = false;
                                Permissions.OperationHotelDateFileReceivedView = false;
                                Permissions.OperationHotelDateFileReceivedEdit = false;
                                Permissions.OperationHotelDateFileCompletedView = false;
                                Permissions.OperationHotelDateFileCompletedEdit = false;
                                Permissions.OperationHotelDayofArrivalView = false;
                                Permissions.OperationHotelDayofArrivalEdit = false;
                                Permissions.OperationHotelDayofArrivalFilter = false;
                                Permissions.OperationHotelMonthofArrivalView = false;
                                Permissions.OperationHotelMonthofArrivalEdit = false;
                                Permissions.OperationHotelMonthofArrivalFilter = false;
                                Permissions.OperationHotelClientBookingCodeView = false;
                                Permissions.OperationHotelClientBookingCodeEdit = false;
                                Permissions.OperationHotelCheckInView = false;
                                Permissions.OperationHotelCheckInEdit = false;
                                Permissions.OperationHotelCheckOutView = false;
                                Permissions.OperationHotelCheckOutEdit = false;
                                Permissions.OperationHotelEstimatedNumberofRoomsView = false;
                                Permissions.OperationHotelEstimatedNumberofRoomsEdit = false;
                                Permissions.OperationHotelEstimatedNumberofRoomsFilter = false;
                                Permissions.OperationHotelEstimatedNumberofPaxView = false;
                                Permissions.OperationHotelEstimatedNumberofPaxEdit = false;
                                Permissions.OperationHotelQuotedRoomView = false;
                                Permissions.OperationHotelQuotedRoomEdit = false;
                                Permissions.OperationHotelQuotedTaxView = false;
                                Permissions.OperationHotelQuotedTaxEdit = false;
                                Permissions.OperationHotelQuotedOccTaxView = false;
                                Permissions.OperationHotelQuotedOccTaxEdit = false;
                                Permissions.OperationHotelQuotedBrkView = false;
                                Permissions.OperationHotelQuotedBrkEdit = false;
                                Permissions.OperationHotelQuotedLgView = false;
                                Permissions.OperationHotelQuotedLgEdit = false;
                                Permissions.OperationHotelQuotedNightView = false;
                                Permissions.OperationHotelQuotedNightEdit = false;
                                Permissions.OperationHotelQuotedNoteView = false;
                                Permissions.OperationHotelQuotedNoteEdit = false;
                                Permissions.OperationHotelConfView = false;
                                Permissions.OperationHotelConfEdit = false;
                                Permissions.OperationHotelQuotedVendorNameView = false;
                                Permissions.OperationHotelQuotedVendorNameEdit = false;
                                Permissions.OperationHotelTechView = false;
                                Permissions.OperationHotelTechEdit = false;
                                Permissions.OperationHotelNotesView = false;
                                Permissions.OperationHotelNotesEdit = false;
                                Permissions.OperationHotelLunchView = false;
                                Permissions.OperationHotelLunchEdit = false;
                                Permissions.OperationHotelDinnerView = false;
                                Permissions.OperationHotelDinnerEdit = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationHotelFixedColumnCount = 0;
                            Permissions.OperationHotelGroupCodeView = false;
                            Permissions.OperationHotelGroupCodeEdit = false;
                            Permissions.OperationHotelGroupCodeFilter = false;
                            Permissions.OperationHotelCustomerView = false;
                            Permissions.OperationHotelCustomerEdit = false;
                            Permissions.OperationHotelCustomerFilter = false;
                            Permissions.OperationHotelDetailsView = false;
                            Permissions.OperationHotelGroupStatusView = false;
                            Permissions.OperationHotelGroupStatusEdit = false;
                            Permissions.OperationHotelGroupStatusFilter = false;
                            Permissions.OperationHotelGroupNameView = false;
                            Permissions.OperationHotelGroupNameEdit = false;
                            Permissions.OperationHotelGroupNameFilter = false;
                            Permissions.OperationHotelArrivalDateView = false;
                            Permissions.OperationHotelArrivalDateEdit = false;
                            Permissions.OperationHotelDepartureDateView = false;
                            Permissions.OperationHotelDepartureDateEdit = false;
                            Permissions.OperationHotelRoomCountView = false;
                            Permissions.OperationHotelRoomCountEdit = false;
                            Permissions.OperationHotelEmployeeView = false;
                            Permissions.OperationHotelEmployeeEdit = false;
                            Permissions.OperationHotelVendorStatusView = false;
                            Permissions.OperationHotelVendorStatusEdit = false;
                            Permissions.OperationHotelVendorStatusFilter = false;
                            Permissions.OperationHotelVendorNameView = false;
                            Permissions.OperationHotelVendorNameEdit = false;
                            Permissions.OperationHotelVendorNameFilter = false;
                            Permissions.OperationHotelCityView = false;
                            Permissions.OperationHotelCityEdit = false;
                            Permissions.OperationHotelCityFilter = false;
                            Permissions.OperationHotelAddressView = false;
                            Permissions.OperationHotelAddressEdit = false;
                            Permissions.OperationHotelPhoneView = false;
                            Permissions.OperationHotelPhoneEdit = false;
                            Permissions.OperationHotelNameOfContactPersonView = false;
                            Permissions.OperationHotelNameOfContactPersonEdit = false;
                            Permissions.OperationHotelEmailView = false;
                            Permissions.OperationHotelEmailEdit = false;
                            Permissions.OperationHotelViewContractView = false;
                            Permissions.OperationHotelViewGroupContractView = false;
                            Permissions.OperationHotelPaxView = false;
                            Permissions.OperationHotelPaxEdit = false;
                            Permissions.OperationHotelArrivalCityView = false;
                            Permissions.OperationHotelArrivalCityEdit = false;
                            Permissions.OperationHotelArrivalCityFilter = false;
                            Permissions.OperationHotelFileCompletationDaysView = false;
                            Permissions.OperationHotelFileCompletationDaysEdit = false;
                            Permissions.OperationHotelNightsView = false;
                            Permissions.OperationHotelNightsEdit = false;
                            Permissions.OperationHotelTotalCostView = false;
                            Permissions.OperationHotelTotalCostEdit = false;
                            Permissions.OperationHotelBreakDownTotalView = false;
                            Permissions.OperationHotelBreakDownTotalEdit = false;
                            Permissions.OperationHotelOutstandingBalanceView = false;
                            Permissions.OperationHotelOutstandingBalanceEdit = false;
                            Permissions.OperationHotelComAmountView = false;
                            Permissions.OperationHotelComAmountEdit = false;
                            Permissions.OperationHotelComDifferenceView = false;
                            Permissions.OperationHotelComDifferenceEdit = false;
                            Permissions.OperationHotelCurrencyView = false;
                            Permissions.OperationHotelCurrencyEdit = false;
                            Permissions.OperationHotelTotalInvoiceView = false;
                            Permissions.OperationHotelTotalInvoiceEdit = false;
                            Permissions.OperationHotelTotalPaidView = false;
                            Permissions.OperationHotelTotalPaidEdit = false;
                            Permissions.OperationHotelFirstPaymentView = false;
                            Permissions.OperationHotelFirstPaymentEdit = false;
                            Permissions.OperationHotelFirstPaymentMethodView = false;
                            Permissions.OperationHotelFirstPaymentMethodEdit = false;
                            Permissions.OperationHotelPayFirstDetailsView = false;
                            Permissions.OperationHotelDateofFirstPaymentView = false;
                            Permissions.OperationHotelDateofFirstPaymentEdit = false;
                            Permissions.OperationHotelSecondPaymentView = false;
                            Permissions.OperationHotelSecondPaymentEdit = false;
                            Permissions.OperationHotelSecondPaymentMethodView = false;
                            Permissions.OperationHotelSecondPaymentMethodEdit = false;
                            Permissions.OperationHotelPaySecondDetailsView = false;
                            Permissions.OperationHotelDateofSecondPaymentView = false;
                            Permissions.OperationHotelDateofSecondPaymentEdit = false;
                            Permissions.OperationHotelThirdPaymentView = false;
                            Permissions.OperationHotelThirdPaymentEdit = false;
                            Permissions.OperationHotelThirdPaymentMethodView = false;
                            Permissions.OperationHotelThirdPaymentMethodEdit = false;
                            Permissions.OperationHotelPayThirdDetailsView = false;
                            Permissions.OperationHotelDateofThirdPaymentView = false;
                            Permissions.OperationHotelDateofThirdPaymentEdit = false;
                            Permissions.OperationHotelRefundReceivedfromHotelView = false;
                            Permissions.OperationHotelRefundReceivedfromHotelEdit = false;
                            Permissions.OperationHotelTotalChargedView = false;
                            Permissions.OperationHotelTotalChargedEdit = false;
                            Permissions.OperationHotelAuthDiffView = false;
                            Permissions.OperationHotelAuthDiffEdit = false;
                            Permissions.OperationHotelAccountingMemoView = false;
                            Permissions.OperationHotelAccountingMemoEdit = false;
                            Permissions.OperationHotelCommissionStatusView = false;
                            Permissions.OperationHotelCommissionStatusEdit = false;
                            Permissions.OperationHotelComPercentView = false;
                            Permissions.OperationHotelComPercentEdit = false;
                            Permissions.OperationHotelComReceivedView = false;
                            Permissions.OperationHotelComReceivedEdit = false;
                            Permissions.OperationHotelComDateReceivedView = false;
                            Permissions.OperationHotelComDateReceivedEdit = false;
                            Permissions.OperationHotelCheckNumberView = false;
                            Permissions.OperationHotelCheckNumberEdit = false;
                            Permissions.OperationHotelCheckNumberAmountView = false;
                            Permissions.OperationHotelCheckNumberAmountEdit = false;
                            Permissions.OperationHotelSGLView = false;
                            Permissions.OperationHotelSGLEdit = false;
                            Permissions.OperationHotelSGLAmountView = false;
                            Permissions.OperationHotelSGLAmountEdit = false;
                            Permissions.OperationHotelDBLView = false;
                            Permissions.OperationHotelDBLEdit = false;
                            Permissions.OperationHotelDBLAmountView = false;
                            Permissions.OperationHotelDBLAmountEdit = false;
                            Permissions.OperationHotelTWNView = false;
                            Permissions.OperationHotelTWNEdit = false;
                            Permissions.OperationHotelTWNAmountView = false;
                            Permissions.OperationHotelTWNAmountEdit = false;
                            Permissions.OperationHotelTRPLView = false;
                            Permissions.OperationHotelTRPLEdit = false;
                            Permissions.OperationHotelTRPLAmountView = false;
                            Permissions.OperationHotelTRPLAmountEdit = false;
                            Permissions.OperationHotelQUDView = false;
                            Permissions.OperationHotelQUDEdit = false;
                            Permissions.OperationHotelQUDAmountView = false;
                            Permissions.OperationHotelQUDAmountEdit = false;
                            Permissions.OperationHotelGuideView = false;
                            Permissions.OperationHotelGuideEdit = false;
                            Permissions.OperationHotelGuideAmountView = false;
                            Permissions.OperationHotelGuideAmountEdit = false;
                            Permissions.OperationHotelDriverView = false;
                            Permissions.OperationHotelDriverEdit = false;
                            Permissions.OperationHotelDriverAmountView = false;
                            Permissions.OperationHotelDriverAmountEdit = false;
                            Permissions.OperationHotelTaxView = false;
                            Permissions.OperationHotelTaxEdit = false;
                            Permissions.OperationHotelOccTaxView = false;
                            Permissions.OperationHotelOccTaxEdit = false;
                            Permissions.OperationHotelCBFView = false;
                            Permissions.OperationHotelCBFEdit = false;
                            Permissions.OperationHotelABFView = false;
                            Permissions.OperationHotelABFEdit = false;
                            Permissions.OperationHotelBagView = false;
                            Permissions.OperationHotelBagEdit = false;
                            Permissions.OperationHotelCompView = false;
                            Permissions.OperationHotelCompEdit = false;
                            Permissions.OperationHotelExtraCostView = false;
                            Permissions.OperationHotelExtraCostEdit = false;
                            Permissions.OperationHotelXLTDateView = false;
                            Permissions.OperationHotelXLTDateEdit = false;
                            Permissions.OperationHotelDateFileReceivedView = false;
                            Permissions.OperationHotelDateFileReceivedEdit = false;
                            Permissions.OperationHotelDateFileCompletedView = false;
                            Permissions.OperationHotelDateFileCompletedEdit = false;
                            Permissions.OperationHotelDayofArrivalView = false;
                            Permissions.OperationHotelDayofArrivalEdit = false;
                            Permissions.OperationHotelDayofArrivalFilter = false;
                            Permissions.OperationHotelMonthofArrivalView = false;
                            Permissions.OperationHotelMonthofArrivalEdit = false;
                            Permissions.OperationHotelMonthofArrivalFilter = false;
                            Permissions.OperationHotelClientBookingCodeView = false;
                            Permissions.OperationHotelClientBookingCodeEdit = false;
                            Permissions.OperationHotelCheckInView = false;
                            Permissions.OperationHotelCheckInEdit = false;
                            Permissions.OperationHotelCheckOutView = false;
                            Permissions.OperationHotelCheckOutEdit = false;
                            Permissions.OperationHotelEstimatedNumberofRoomsView = false;
                            Permissions.OperationHotelEstimatedNumberofRoomsEdit = false;
                            Permissions.OperationHotelEstimatedNumberofRoomsFilter = false;
                            Permissions.OperationHotelEstimatedNumberofPaxView = false;
                            Permissions.OperationHotelEstimatedNumberofPaxEdit = false;
                            Permissions.OperationHotelQuotedRoomView = false;
                            Permissions.OperationHotelQuotedRoomEdit = false;
                            Permissions.OperationHotelQuotedTaxView = false;
                            Permissions.OperationHotelQuotedTaxEdit = false;
                            Permissions.OperationHotelQuotedOccTaxView = false;
                            Permissions.OperationHotelQuotedOccTaxEdit = false;
                            Permissions.OperationHotelQuotedBrkView = false;
                            Permissions.OperationHotelQuotedBrkEdit = false;
                            Permissions.OperationHotelQuotedLgView = false;
                            Permissions.OperationHotelQuotedLgEdit = false;
                            Permissions.OperationHotelQuotedNightView = false;
                            Permissions.OperationHotelQuotedNightEdit = false;
                            Permissions.OperationHotelQuotedNoteView = false;
                            Permissions.OperationHotelQuotedNoteEdit = false;
                            Permissions.OperationHotelConfView = false;
                            Permissions.OperationHotelConfEdit = false;
                            Permissions.OperationHotelQuotedVendorNameView = false;
                            Permissions.OperationHotelQuotedVendorNameEdit = false;
                            Permissions.OperationHotelTechView = false;
                            Permissions.OperationHotelTechEdit = false;
                            Permissions.OperationHotelNotesView = false;
                            Permissions.OperationHotelNotesEdit = false;
                            Permissions.OperationHotelLunchView = false;
                            Permissions.OperationHotelLunchEdit = false;
                            Permissions.OperationHotelDinnerView = false;
                            Permissions.OperationHotelDinnerEdit = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
            }
            var OperationPL = (from perm in data.Tools where perm.ToolID == 4 select perm.ToolTabs).SingleOrDefault();
            if(OperationPL == null)
            {
                Permissions.OperationPLHotelView = false;
                Permissions.OperationPLRoomView = false;
                Permissions.OperationPLAttractionView = false;
                Permissions.OperationPLInvoiceView = false;
                Permissions.OperationPLBusView = false;
                Permissions.OperationPLMiscView = false;
            }
            else
            {
                var OperationPLHotel = (from hotelpl in OperationPL where hotelpl.ToolTabID == 20 select hotelpl).SingleOrDefault();
                if (OperationPLHotel == null)
                {
                    Permissions.OperationPLHotelView = false;
                }
                else
                {
                    var OperationPLHotelColumns = (from hotelplcolumn in OperationPLHotel.ToolTabColumns select hotelplcolumn.Permisionss).ToList();
                    if (OperationPLHotelColumns == null)
                    {
                        Permissions.OperationPLHotelView = false;
                    }
                    else
                    {
                        if (!OperationPLHotelColumns.Any(perm => perm == null))
                        {
                            if (OperationPLHotelColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLHotelView = true;
                                foreach (var hotelpl in OperationPLHotelColumns)
                                {
                                    switch (hotelpl.PerColumnName)
                                    {
                                        case "Grp Profit":
                                            {
                                                Permissions.OperationPLHotelGrpProfitView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationPLHotelTotalCostView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Paid":
                                            {
                                                Permissions.OperationPLHotelTotalPaidView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Out Pay":
                                            {
                                                Permissions.OperationPLHotelTotalOutPayView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Out Com Amt":
                                            {
                                                Permissions.OperationPLHotelOutComAmtView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Com Amt":
                                            {
                                                Permissions.OperationPLHotelTotalComAmtView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Com Rec":
                                            {
                                                Permissions.OperationPLHotelTotalComRecView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Room Diff":
                                            {
                                                Permissions.OperationPLHotelTotalRoomDiffView = hotelpl.PerColumnView != null ? Convert.ToBoolean(hotelpl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLHotelView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLHotelView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationPLRoom = (from roompl in OperationPL where roompl.ToolTabID == 21 select roompl).SingleOrDefault();
                if (OperationPLRoom == null)
                {
                    Permissions.OperationPLRoomView = false;
                }
                else
                {
                    var OperationPLRoomColumns = (from roomplcolumn in OperationPLRoom.ToolTabColumns select roomplcolumn.Permisionss).ToList();
                    if (OperationPLRoomColumns == null)
                    {
                        Permissions.OperationPLRoomView = false;
                    }
                    else
                    {
                        if (!OperationPLRoomColumns.Any(perm => perm == null))
                        {
                            if (OperationPLRoomColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLRoomView = true;
                                foreach (var roompl in OperationPLRoomColumns)
                                {
                                    switch (roompl.PerColumnName)
                                    {
                                        case "Pax":
                                            {
                                                Permissions.OperationPLRoomPaxView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Room(s)":
                                            {
                                                Permissions.OperationPLRoomRoomsView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "SGL":
                                            {
                                                Permissions.OperationPLRoomSGLView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "DBL":
                                            {
                                                Permissions.OperationPLRoomDBLView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "TWN":
                                            {
                                                Permissions.OperationPLRoomTWNView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "TRPL":
                                            {
                                                Permissions.OperationPLRoomTRPLView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "QUD":
                                            {
                                                Permissions.OperationPLRoomQUDView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Driver":
                                            {
                                                Permissions.OperationPLRoomDriverView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Guide":
                                            {
                                                Permissions.OperationPLRoomGuideView = roompl.PerColumnView != null ? Convert.ToBoolean(roompl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLRoomView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLRoomView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationPLAttraction = (from attrpl in OperationPL where attrpl.ToolTabID == 22 select attrpl).SingleOrDefault();
                if (OperationPLAttraction == null)
                {
                    Permissions.OperationPLAttractionView = false;
                }
                else
                {
                    var OperationPLAttractionColumns = (from attrcolumn in OperationPLAttraction.ToolTabColumns select attrcolumn.Permisionss).ToList();
                    if (OperationPLAttractionColumns == null)
                    {
                        Permissions.OperationPLAttractionView = false;
                    }
                    else
                    {
                        if (!OperationPLAttractionColumns.Any(perm => perm == null))
                        {
                            if (OperationPLAttractionColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLAttractionView = true;
                                foreach (var attrpl in OperationPLAttractionColumns)
                                {
                                    switch (attrpl.PerColumnName)
                                    {
                                        case "Total Paid":
                                            {
                                                Permissions.OperationPLAttractionTotalPaidView = attrpl.PerColumnView != null ? Convert.ToBoolean(attrpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Diff":
                                            {
                                                Permissions.OperationPLAttractionTotalDiffView = attrpl.PerColumnView != null ? Convert.ToBoolean(attrpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Out Amt":
                                            {
                                                Permissions.OperationPLAttractionTotalOutAmtView = attrpl.PerColumnView != null ? Convert.ToBoolean(attrpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Diff Paid Charged":
                                            {
                                                Permissions.OperationPLAttractionTotalDiffPaidChargedView = attrpl.PerColumnView != null ? Convert.ToBoolean(attrpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationPLAttractionTotalCostView = attrpl.PerColumnView != null ? Convert.ToBoolean(attrpl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLAttractionView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLAttractionView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationPLMisc = (from miscpl in OperationPL where miscpl.ToolTabID == 29 select miscpl).SingleOrDefault();
                if (OperationPLMisc == null)
                {
                    Permissions.OperationPLMiscView = false;
                }
                else
                {
                    var OperationPLMiscColumns = (from miscplcolumn in OperationPLMisc.ToolTabColumns select miscplcolumn.Permisionss).ToList();
                    if (OperationPLMiscColumns == null)
                    {
                        Permissions.OperationPLMiscView = false;
                    }
                    else
                    {
                        if (!OperationPLMiscColumns.Any(perm => perm == null))
                        {
                            if (OperationPLMiscColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLMiscView = true;
                                foreach (var miscpl in OperationPLMiscColumns)
                                {
                                    switch (miscpl.PerColumnName)
                                    {
                                        case "Total Paid":
                                            {
                                                Permissions.OperationPLMiscTotalPaidView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Cost":
                                            {
                                                Permissions.OperationPLMiscTotalCostView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Out Amt":
                                            {
                                                Permissions.OperationPLMiscTotalOutAmtView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total P/P Diff":
                                            {
                                                Permissions.OperationPLMiscTotalDiffView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total P/G Diff":
                                            {
                                                Permissions.OperationPLMiscTotalPGDiffView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total P/P Comp":
                                            {
                                                Permissions.OperationPLMiscTotalCompView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total P/G Comp":
                                            {
                                                Permissions.OperationPLMiscTotalPGCompView = miscpl.PerColumnView != null ? Convert.ToBoolean(miscpl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLMiscView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLMiscView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationPLBus = (from buspl in OperationPL where buspl.ToolTabID == 23 select buspl).SingleOrDefault();
                if (OperationPLBus == null)
                {
                    Permissions.OperationPLBusView = false;
                }
                else
                {
                    var OperationPLBusColumns = (from busplcolumn in OperationPLBus.ToolTabColumns select busplcolumn.Permisionss).ToList();
                    if (OperationPLBusColumns == null)
                    {
                        Permissions.OperationPLBusView = false;
                    }
                    else
                    {
                        if (!OperationPLBusColumns.Any(perm => perm == null))
                        {
                            if (OperationPLBusColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLBusView = true;
                                foreach (var buspl in OperationPLBusColumns)
                                {
                                    switch (buspl.PerColumnName)
                                    {
                                        case "Total Bus Diff":
                                            {
                                                Permissions.OperationPLBusTotalBusDiffView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Guide Diff":
                                            {
                                                Permissions.OperationPLBusTotalGuideDiffView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Bus Paid":
                                            {
                                                Permissions.OperationPLBusTotalBusPaidView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Guide Paid":
                                            {
                                                Permissions.OperationPLBusTotalGuidePaidView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Bus Cost":
                                            {
                                                Permissions.OperationPLBusTotalBusCostView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Guide Cost":
                                            {
                                                Permissions.OperationPLBusTotalGuideCostView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Guide Misc Diff":
                                            {
                                                Permissions.OperationPLBusTotalGuideMiscDiffView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Guide StepOn":
                                            {
                                                Permissions.OperationPLBusTotalGuideStepOnView = buspl.PerColumnView != null ? Convert.ToBoolean(buspl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLBusView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLBusView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var OperationPLInvoice = (from invpl in OperationPL where invpl.ToolTabID == 25 select invpl).SingleOrDefault();
                if (OperationPLInvoice == null)
                {
                    Permissions.OperationPLInvoiceView = false;
                }
                else
                {
                    var OperationPLInvoiceColumns = (from invcolumn in OperationPLInvoice.ToolTabColumns select invcolumn.Permisionss).ToList();
                    if (OperationPLInvoiceColumns == null)
                    {
                        Permissions.OperationPLInvoiceView = false;
                    }
                    else
                    {
                        if (!OperationPLInvoiceColumns.Any(perm => perm == null))
                        {
                            if (OperationPLInvoiceColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.OperationPLInvoiceView = true;
                                foreach (var invpl in OperationPLInvoiceColumns)
                                {
                                    switch (invpl.PerColumnName)
                                    {
                                        case "Total Debit":
                                            {
                                                Permissions.OperationPLInvoiceTotalDebitView = invpl.PerColumnView != null ? Convert.ToBoolean(invpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Credit":
                                            {
                                                Permissions.OperationPLInvoiceTotalCreditView = invpl.PerColumnView != null ? Convert.ToBoolean(invpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Deposit":
                                            {
                                                Permissions.OperationPLInvoiceTotalDepositView = invpl.PerColumnView != null ? Convert.ToBoolean(invpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Amount Due":
                                            {
                                                Permissions.OperationPLInvoiceAmountDueView = invpl.PerColumnView != null ? Convert.ToBoolean(invpl.PerColumnView) : false;
                                            }
                                            break;
                                        case "Total Refund":
                                            {
                                                Permissions.OperationPLInvoiceTotalRefundView = invpl.PerColumnView != null ? Convert.ToBoolean(invpl.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.OperationPLInvoiceView = false;
                            }
                        }
                        else
                        {
                            Permissions.OperationPLInvoiceView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
            }
            var Quotation = (from perm in data.Tools where perm.ToolID == 1 select perm.ToolTabs).SingleOrDefault();
            if(Quotation == null)
            {
                Permissions.QuotaDetailCreateGirGroupEdit = false;
                Permissions.QuotaDetailCreateGroupSeriesEdit = false;
                Permissions.QuotaDetailDownloadProposalView = false;
                Permissions.QuotaDetailUploadProposalView = false;
                Permissions.QuotaDetailNewBtnView = false;
                Permissions.QuotaDetailSaveBtnView = false;
                Permissions.QuotaDetailSaveAsBtnView = false;
                Permissions.QuotaDetailPreviewBtnView = false;
                Permissions.QuotaMiscRemoveBtnView = false;
                Permissions.QuotaMiscInsertBtnView = false;
                Permissions.QuotaMiscNewLineBtnView = false;
                Permissions.QuotaMiscUpdateBtnView = false;
                Permissions.QuotaLunchDinRemoveBtnView = false;
                Permissions.QuotaLunchDinInsertBtnView = false;
                Permissions.QuotaLunchDinNewLineBtnView = false;
                Permissions.QuotaLunchDinUpdateBtnView = false;
                Permissions.QuotaHotelRemoveBtnView = false;
                Permissions.QuotaHotelInsertBtnView = false;
                Permissions.QuotaHotelNewLineBtnView = false;
                Permissions.QuotaHotelUpdateBtnView = false;
                Permissions.QuotaGuideRemoveBtnView = false;
                Permissions.QuotaGuideInsertBtnView = false;
                Permissions.QuotaGuideNewLineBtnView = false;
                Permissions.QuotaGuideUpdateBtnView = false;
                Permissions.QuotaEntranceRemoveBtnView = false;
                Permissions.QuotaEntranceInsertBtnView = false;
                Permissions.QuotaEntranceNewLineBtnView = false;
                Permissions.QuotaEntranceUpdateBtnView = false;
                Permissions.QuotaBusRemoveBtnView = false;
                Permissions.QuotaBusInsertBtnView = false;
                Permissions.QuotaBusNewLineBtnView = false;
                Permissions.QuotaBusUpdateBtnView = false;
            }
            else
            {
                var QuotationDetails = (from detail in Quotation where detail.ToolTabID == 17 select detail).SingleOrDefault();
                if(QuotationDetails == null)
                {
                    Permissions.QuotaDetailCreateGirGroupEdit = false;
                    Permissions.QuotaDetailCreateGroupSeriesEdit = false;
                    Permissions.QuotaDetailDownloadProposalView = false;
                    Permissions.QuotaDetailUploadProposalView = false;
                    Permissions.QuotaDetailNewBtnView = false;
                    Permissions.QuotaDetailSaveBtnView = false;
                    Permissions.QuotaDetailSaveAsBtnView = false;
                    Permissions.QuotaDetailPreviewBtnView = false;
                }
                else
                {
                    var QuotationDetailsColumns = (from detailcolumn in QuotationDetails.ToolTabColumns select detailcolumn.Permisionss).ToList();
                    if(QuotationDetailsColumns == null)
                    {
                        Permissions.QuotaDetailCreateGirGroupEdit = false;
                        Permissions.QuotaDetailCreateGroupSeriesEdit = false;
                        Permissions.QuotaDetailDownloadProposalView = false;
                        Permissions.QuotaDetailUploadProposalView = false;
                        Permissions.QuotaDetailNewBtnView = false;
                        Permissions.QuotaDetailSaveBtnView = false;
                        Permissions.QuotaDetailSaveAsBtnView = false;
                        Permissions.QuotaDetailPreviewBtnView = false;
                    }
                    else
                    {
                        if(!QuotationDetailsColumns.Any(perm => perm == null))
                        {
                            if (QuotationDetailsColumns.Any(perm => perm.PerColumnView == true || perm.PerColumnEdit == true))
                            {
                                foreach (var detail in QuotationDetailsColumns)
                                {
                                    switch (detail.PerColumnName)
                                    {
                                        case "Create Gir Group":
                                            {
                                                Permissions.QuotaDetailCreateGirGroupEdit = detail.PerColumnEdit != null ? Convert.ToBoolean(detail.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Create Group Series":
                                            {
                                                Permissions.QuotaDetailCreateGroupSeriesEdit = detail.PerColumnEdit != null ? Convert.ToBoolean(detail.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Download Proposal":
                                            {
                                                Permissions.QuotaDetailDownloadProposalView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        case "Upload Proposal":
                                            {
                                                Permissions.QuotaDetailUploadProposalView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Button":
                                            {
                                                Permissions.QuotaDetailNewBtnView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        case "Save Button":
                                            {
                                                Permissions.QuotaDetailSaveBtnView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        case "SaveAs Button":
                                            {
                                                Permissions.QuotaDetailSaveAsBtnView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        case "Preview Button":
                                            {
                                                Permissions.QuotaDetailPreviewBtnView = detail.PerColumnView != null ? Convert.ToBoolean(detail.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaDetailCreateGirGroupEdit = false;
                                Permissions.QuotaDetailCreateGroupSeriesEdit = false;
                                Permissions.QuotaDetailDownloadProposalView = false;
                                Permissions.QuotaDetailUploadProposalView = false;
                                Permissions.QuotaDetailNewBtnView = false;
                                Permissions.QuotaDetailSaveBtnView = false;
                                Permissions.QuotaDetailSaveAsBtnView = false;
                                Permissions.QuotaDetailPreviewBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaDetailCreateGirGroupEdit = false;
                            Permissions.QuotaDetailCreateGroupSeriesEdit = false;
                            Permissions.QuotaDetailDownloadProposalView = false;
                            Permissions.QuotaDetailUploadProposalView = false;
                            Permissions.QuotaDetailNewBtnView = false;
                            Permissions.QuotaDetailSaveBtnView = false;
                            Permissions.QuotaDetailSaveAsBtnView = false;
                            Permissions.QuotaDetailPreviewBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var QuotationMisc = (from misc in Quotation where misc.ToolTabID == 4 select misc).SingleOrDefault();
                if(QuotationMisc == null)
                {
                    Permissions.QuotaMiscRemoveBtnView = false;
                    Permissions.QuotaMiscInsertBtnView = false;
                    Permissions.QuotaMiscNewLineBtnView = false;
                    Permissions.QuotaMiscUpdateBtnView = false;
                }
                else
                {
                    var QuotationMiscColumns = (from misccolumn in QuotationMisc.ToolTabColumns select misccolumn.Permisionss).ToList();
                    if (QuotationMiscColumns == null)
                    {
                        Permissions.QuotaMiscRemoveBtnView = false;
                        Permissions.QuotaMiscInsertBtnView = false;
                        Permissions.QuotaMiscNewLineBtnView = false;
                        Permissions.QuotaMiscUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationMiscColumns.Any(perm => perm == null))
                        {
                            if (QuotationMiscColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var misc in QuotationMiscColumns)
                                {
                                    switch (misc.PerColumnName)
                                    {
                                        case "Remove Misc":
                                            {
                                                Permissions.QuotaMiscRemoveBtnView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaMiscInsertBtnView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaMiscNewLineBtnView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaMiscUpdateBtnView = misc.PerColumnView != null ? Convert.ToBoolean(misc.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaMiscRemoveBtnView = false;
                                Permissions.QuotaMiscInsertBtnView = false;
                                Permissions.QuotaMiscNewLineBtnView = false;
                                Permissions.QuotaMiscUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaMiscRemoveBtnView = false;
                            Permissions.QuotaMiscInsertBtnView = false;
                            Permissions.QuotaMiscNewLineBtnView = false;
                            Permissions.QuotaMiscUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }

                var QuotationLunchDin = (from lundin in Quotation where lundin.ToolTabID == 2 select lundin).SingleOrDefault();
                if (QuotationLunchDin == null)
                {
                    Permissions.QuotaLunchDinRemoveBtnView = false;
                    Permissions.QuotaLunchDinInsertBtnView = false;
                    Permissions.QuotaLunchDinNewLineBtnView = false;
                    Permissions.QuotaLunchDinUpdateBtnView = false;
                }
                else
                {
                    var QuotationLunchDinColumns = (from lundincolumn in QuotationLunchDin.ToolTabColumns select lundincolumn.Permisionss).ToList();
                    if (QuotationLunchDinColumns == null)
                    {
                        Permissions.QuotaLunchDinRemoveBtnView = false;
                        Permissions.QuotaLunchDinInsertBtnView = false;
                        Permissions.QuotaLunchDinNewLineBtnView = false;
                        Permissions.QuotaLunchDinUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationLunchDinColumns.Any(perm => perm == null))
                        {
                            if (QuotationLunchDinColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var lundin in QuotationLunchDinColumns)
                                {
                                    switch (lundin.PerColumnName)
                                    {
                                        case "Remove Lunch Dinner":
                                            {
                                                Permissions.QuotaLunchDinRemoveBtnView = lundin.PerColumnView != null ? Convert.ToBoolean(lundin.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaLunchDinInsertBtnView = lundin.PerColumnView != null ? Convert.ToBoolean(lundin.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaLunchDinNewLineBtnView = lundin.PerColumnView != null ? Convert.ToBoolean(lundin.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaLunchDinUpdateBtnView = lundin.PerColumnView != null ? Convert.ToBoolean(lundin.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaLunchDinRemoveBtnView = false;
                                Permissions.QuotaLunchDinInsertBtnView = false;
                                Permissions.QuotaLunchDinNewLineBtnView = false;
                                Permissions.QuotaLunchDinUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaLunchDinRemoveBtnView = false;
                            Permissions.QuotaLunchDinInsertBtnView = false;
                            Permissions.QuotaLunchDinNewLineBtnView = false;
                            Permissions.QuotaLunchDinUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }


                var QuotationHotel = (from hotel in Quotation where hotel.ToolTabID == 1 select hotel).SingleOrDefault();
                if (QuotationHotel == null)
                {
                    Permissions.QuotaHotelRemoveBtnView = false;
                    Permissions.QuotaHotelInsertBtnView = false;
                    Permissions.QuotaHotelNewLineBtnView = false;
                    Permissions.QuotaHotelUpdateBtnView = false;
                }
                else
                {
                    var QuotationHotelColumns = (from Hotelcolumn in QuotationHotel.ToolTabColumns select Hotelcolumn.Permisionss).ToList();
                    if (QuotationHotelColumns == null)
                    {
                        Permissions.QuotaHotelRemoveBtnView = false;
                        Permissions.QuotaHotelInsertBtnView = false;
                        Permissions.QuotaHotelNewLineBtnView = false;
                        Permissions.QuotaHotelUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationHotelColumns.Any(perm => perm == null))
                        {
                            if (QuotationHotelColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var Hotel in QuotationHotelColumns)
                                {
                                    switch (Hotel.PerColumnName)
                                    {
                                        case "Remove Hotel":
                                            {
                                                Permissions.QuotaHotelRemoveBtnView = Hotel.PerColumnView != null ? Convert.ToBoolean(Hotel.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaHotelInsertBtnView = Hotel.PerColumnView != null ? Convert.ToBoolean(Hotel.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaHotelNewLineBtnView = Hotel.PerColumnView != null ? Convert.ToBoolean(Hotel.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaHotelUpdateBtnView = Hotel.PerColumnView != null ? Convert.ToBoolean(Hotel.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaHotelRemoveBtnView = false;
                                Permissions.QuotaHotelInsertBtnView = false;
                                Permissions.QuotaHotelNewLineBtnView = false;
                                Permissions.QuotaHotelUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaHotelRemoveBtnView = false;
                            Permissions.QuotaHotelInsertBtnView = false;
                            Permissions.QuotaHotelNewLineBtnView = false;
                            Permissions.QuotaHotelUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }

                var QuotationGuide = (from Guide in Quotation where Guide.ToolTabID == 6 select Guide).SingleOrDefault();
                if (QuotationGuide == null)
                {
                    Permissions.QuotaGuideRemoveBtnView = false;
                    Permissions.QuotaGuideInsertBtnView = false;
                    Permissions.QuotaGuideNewLineBtnView = false;
                    Permissions.QuotaGuideUpdateBtnView = false;
                }
                else
                {
                    var QuotationGuideColumns = (from Guidecolumn in QuotationGuide.ToolTabColumns select Guidecolumn.Permisionss).ToList();
                    if (QuotationGuideColumns == null)
                    {
                        Permissions.QuotaGuideRemoveBtnView = false;
                        Permissions.QuotaGuideInsertBtnView = false;
                        Permissions.QuotaGuideNewLineBtnView = false;
                        Permissions.QuotaGuideUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationGuideColumns.Any(perm => perm == null))
                        {
                            if (QuotationGuideColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var Guide in QuotationGuideColumns)
                                {
                                    switch (Guide.PerColumnName)
                                    {
                                        case "Remove Guide":
                                            {
                                                Permissions.QuotaGuideRemoveBtnView = Guide.PerColumnView != null ? Convert.ToBoolean(Guide.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaGuideInsertBtnView = Guide.PerColumnView != null ? Convert.ToBoolean(Guide.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaGuideNewLineBtnView = Guide.PerColumnView != null ? Convert.ToBoolean(Guide.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaGuideUpdateBtnView = Guide.PerColumnView != null ? Convert.ToBoolean(Guide.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaGuideRemoveBtnView = false;
                                Permissions.QuotaGuideInsertBtnView = false;
                                Permissions.QuotaGuideNewLineBtnView = false;
                                Permissions.QuotaGuideUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaGuideRemoveBtnView = false;
                            Permissions.QuotaGuideInsertBtnView = false;
                            Permissions.QuotaGuideNewLineBtnView = false;
                            Permissions.QuotaGuideUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }

                var QuotationEntrance = (from Entrance in Quotation where Entrance.ToolTabID == 3 select Entrance).SingleOrDefault();
                if (QuotationEntrance == null)
                {
                    Permissions.QuotaEntranceRemoveBtnView = false;
                    Permissions.QuotaEntranceInsertBtnView = false;
                    Permissions.QuotaEntranceNewLineBtnView = false;
                    Permissions.QuotaEntranceUpdateBtnView = false;
                }
                else
                {
                    var QuotationEntranceColumns = (from Entrancecolumn in QuotationEntrance.ToolTabColumns select Entrancecolumn.Permisionss).ToList();
                    if (QuotationEntranceColumns == null)
                    {
                        Permissions.QuotaEntranceRemoveBtnView = false;
                        Permissions.QuotaEntranceInsertBtnView = false;
                        Permissions.QuotaEntranceNewLineBtnView = false;
                        Permissions.QuotaEntranceUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationEntranceColumns.Any(perm => perm == null))
                        {
                            if (QuotationEntranceColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var Entrance in QuotationEntranceColumns)
                                {
                                    switch (Entrance.PerColumnName)
                                    {
                                        case "Remove Entrance":
                                            {
                                                Permissions.QuotaEntranceRemoveBtnView = Entrance.PerColumnView != null ? Convert.ToBoolean(Entrance.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaEntranceInsertBtnView = Entrance.PerColumnView != null ? Convert.ToBoolean(Entrance.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaEntranceNewLineBtnView = Entrance.PerColumnView != null ? Convert.ToBoolean(Entrance.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaEntranceUpdateBtnView = Entrance.PerColumnView != null ? Convert.ToBoolean(Entrance.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaEntranceRemoveBtnView = false;
                                Permissions.QuotaEntranceInsertBtnView = false;
                                Permissions.QuotaEntranceNewLineBtnView = false;
                                Permissions.QuotaEntranceUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaEntranceRemoveBtnView = false;
                            Permissions.QuotaEntranceInsertBtnView = false;
                            Permissions.QuotaEntranceNewLineBtnView = false;
                            Permissions.QuotaEntranceUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }

                var QuotationBus = (from Bus in Quotation where Bus.ToolTabID == 5 select Bus).SingleOrDefault();
                if (QuotationBus == null)
                {
                    Permissions.QuotaBusRemoveBtnView = false;
                    Permissions.QuotaBusInsertBtnView = false;
                    Permissions.QuotaBusNewLineBtnView = false;
                    Permissions.QuotaBusUpdateBtnView = false;
                }
                else
                {
                    var QuotationBusColumns = (from Buscolumn in QuotationBus.ToolTabColumns select Buscolumn.Permisionss).ToList();
                    if (QuotationBusColumns == null)
                    {
                        Permissions.QuotaBusRemoveBtnView = false;
                        Permissions.QuotaBusInsertBtnView = false;
                        Permissions.QuotaBusNewLineBtnView = false;
                        Permissions.QuotaBusUpdateBtnView = false;
                    }
                    else
                    {
                        if (!QuotationBusColumns.Any(perm => perm == null))
                        {
                            if (QuotationBusColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var Bus in QuotationBusColumns)
                                {
                                    switch (Bus.PerColumnName)
                                    {
                                        case "Remove Bus":
                                            {
                                                Permissions.QuotaBusRemoveBtnView = Bus.PerColumnView != null ? Convert.ToBoolean(Bus.PerColumnView) : false;
                                            }
                                            break;
                                        case "Insert":
                                            {
                                                Permissions.QuotaBusInsertBtnView = Bus.PerColumnView != null ? Convert.ToBoolean(Bus.PerColumnView) : false;
                                            }
                                            break;
                                        case "New Line":
                                            {
                                                Permissions.QuotaBusNewLineBtnView = Bus.PerColumnView != null ? Convert.ToBoolean(Bus.PerColumnView) : false;
                                            }
                                            break;
                                        case "Update":
                                            {
                                                Permissions.QuotaBusUpdateBtnView = Bus.PerColumnView != null ? Convert.ToBoolean(Bus.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaBusRemoveBtnView = false;
                                Permissions.QuotaBusInsertBtnView = false;
                                Permissions.QuotaBusNewLineBtnView = false;
                                Permissions.QuotaBusUpdateBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaBusRemoveBtnView = false;
                            Permissions.QuotaBusInsertBtnView = false;
                            Permissions.QuotaBusNewLineBtnView = false;
                            Permissions.QuotaBusUpdateBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var QuotationCostPrice = (from CostPrice in Quotation where CostPrice.ToolTabID == 7 select CostPrice).SingleOrDefault();
                if (QuotationCostPrice == null)
                {
                    Permissions.QuotaCostPriceCalculateCostBtnView = false;
                }
                else
                {
                    var QuotationCostPriceColumns = (from CostPricecolumn in QuotationCostPrice.ToolTabColumns select CostPricecolumn.Permisionss).ToList();
                    if (QuotationCostPriceColumns == null)
                    {
                        Permissions.QuotaCostPriceCalculateCostBtnView = false;
                    }
                    else
                    {
                        if (!QuotationCostPriceColumns.Any(perm => perm == null))
                        {
                            if (QuotationCostPriceColumns.Any(perm => perm.PerColumnView == true))
                            {
                                foreach (var CostPrice in QuotationCostPriceColumns)
                                {
                                    switch (CostPrice.PerColumnName)
                                    {
                                        case "Calculate Cost Button":
                                            {
                                                Permissions.QuotaCostPriceCalculateCostBtnView = CostPrice.PerColumnView != null ? Convert.ToBoolean(CostPrice.PerColumnView) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.QuotaCostPriceCalculateCostBtnView = false;
                            }
                        }
                        else
                        {
                            Permissions.QuotaCostPriceCalculateCostBtnView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }

            }
            var Menu = (from perm in data.Tools where perm.ToolID == 3 select perm.ToolTabs).SingleOrDefault();
            if (Menu == null)
            {
                Permissions.MenuView = false;
            }
            else
            {
                var MenuManage = (from manage in Menu where manage.ToolTabID == 14 select manage).SingleOrDefault();
                if (MenuManage == null)
                {
                    Permissions.MenuManageView = false;
                }
                else
                {
                    var MenuManageColumns = (from managecolumn in MenuManage.ToolTabColumns select managecolumn.Permisionss).ToList();
                    if (MenuManageColumns == null)
                    {
                        Permissions.MenuManageView = false;
                    }
                    else
                    {
                        if (!MenuManageColumns.Any(perm => perm == null))
                        {
                            if (MenuManageColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.MenuManageView = true;
                                foreach (var manage in MenuManageColumns)
                                {
                                    switch (manage.PerColumnName)
                                    {
                                        case "Create User":
                                            {
                                                Permissions.MenuManageCreateUserView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageCreateUserEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer":
                                            {
                                                Permissions.MenuManageCustomerView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageCustomerEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Season":
                                            {
                                                Permissions.MenuManageSeasonView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageSeasonEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Guide":
                                            {
                                                Permissions.MenuManageGuideView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageGuideEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Employee":
                                            {
                                                Permissions.MenuManageEmployeeView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageEmployeeEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Vendor":
                                            {
                                                Permissions.MenuManageVendorView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageVendorEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Preferred":
                                            {
                                                Permissions.MenuManagePreferredView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManagePreferredEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Quotation":
                                            {
                                                Permissions.MenuManageQuotationView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageQuotationEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Quotation Groups":
                                            {
                                                Permissions.MenuManageQuotationGroupsView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageQuotationGroupsEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Edit Optional":
                                            {
                                                Permissions.MenuManageOptionalView = manage.PerColumnView != null ? Convert.ToBoolean(manage.PerColumnView) : false;
                                                Permissions.MenuManageOptionalEdit = manage.PerColumnEdit != null ? Convert.ToBoolean(manage.PerColumnEdit) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.MenuManageView = false;
                            }
                        }
                        else
                        {
                            Permissions.MenuManageView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var MenuSetup = (from setup in Menu where setup.ToolTabID == 15 select setup).SingleOrDefault();
                if (MenuSetup == null)
                {
                    Permissions.MenuSetupView = false;
                }
                else
                {
                    var MenuSetupColumns = (from setupcolumn in MenuSetup.ToolTabColumns select setupcolumn.Permisionss).ToList();
                    if (MenuSetupColumns == null)
                    {
                        Permissions.MenuSetupView = false;
                    }
                    else
                    {
                        if (!MenuSetupColumns.Any(perm => perm == null))
                        {
                            if (MenuSetupColumns.Any(perm => perm.PerColumnView == true))
                            {
                                Permissions.MenuSetupView = true;
                                foreach (var setup in MenuSetupColumns)
                                {
                                    switch (setup.PerColumnName)
                                    {
                                        case "Company":
                                            {
                                                Permissions.MenuSetupCompanyView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupCompanyEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Bank":
                                            {
                                                Permissions.MenuSetupBankView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupBankEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Credit Card":
                                            {
                                                Permissions.MenuSetupCreditCardView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupCreditCardEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Pay. Type":
                                            {
                                                Permissions.MenuSetupPayTypeView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupPayTypeEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Service Type":
                                            {
                                                Permissions.MenuSetupServiceTypeView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupServiceTypeEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Service":
                                            {
                                                Permissions.MenuSetupServiceView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupServiceEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Vendor Type":
                                            {
                                                Permissions.MenuSetupVendorTypeView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupVendorTypeEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Detail":
                                            {
                                                Permissions.MenuSetupDetailView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupDetailEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Detail Type":
                                            {
                                                Permissions.MenuSetupDetailTypeView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupDetailTypeEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Region":
                                            {
                                                Permissions.MenuSetupRegionView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupRegionEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Area":
                                            {
                                                Permissions.MenuSetupAreaView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupAreaEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "State":
                                            {
                                                Permissions.MenuSetupStateView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupStateEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Country":
                                            {
                                                Permissions.MenuSetupCountryView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupCountryEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Quota Region":
                                            {
                                                Permissions.MenuSetupQRegionView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupQRegionEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Tech Detail":
                                            {
                                                Permissions.MenuSetupTechDetailView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupTechDetailEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "City":
                                            {
                                                Permissions.MenuSetupCityView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupCityEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Vendor Confirm Status":
                                            {
                                                Permissions.MenuSetupVendorConfirmStatusView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupVendorConfirmStatusEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Special Dates":
                                            {
                                                Permissions.MenuSetupSpecialDatesView = setup.PerColumnView != null ? Convert.ToBoolean(setup.PerColumnView) : false;
                                                Permissions.MenuSetupSpecialDatesEdit = setup.PerColumnEdit != null ? Convert.ToBoolean(setup.PerColumnEdit) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }

                            }
                            else
                            {
                                Permissions.MenuSetupView = false;
                            }
                        }
                        else
                        {
                            Permissions.MenuSetupView = false;
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                var MenuReport = (from report in Menu where report.ToolTabID == 16 select report).SingleOrDefault();
                if (MenuReport == null)
                {
                    Permissions.MenuReportView = false;
                }
                else
                {
                    var MenuReportColumns = (from reportcolumn in MenuReport.ToolTabColumns select reportcolumn.Permisionss).ToList();
                    if (MenuReportColumns == null)
                    {
                        Permissions.MenuReportView = false;
                    }
                    else
                    {
                        if (!MenuReportColumns.Any(perm => perm == null))
                        {
                            if (MenuReportColumns.Any(perm => perm.PerColumnView == true))
                            {
                                if (!MenuReportColumns.Any(perm => 
                                    perm.PerColumnView == true 
                                    && (perm.PerColumnName == "Customer A/R Days" 
                                    || perm.PerColumnName == "Customer Invoice Summary"
                                    || perm.PerColumnName == "Customer Payment"
                                    || perm.PerColumnName == "Customer Payment Type"
                                    || perm.PerColumnName == "Customer-Group")))
                                {
                                    Permissions.MenuCustomerReportView = false;
                                }
                                else
                                {
                                    Permissions.MenuCustomerReportView = true;
                                }
                                if(!MenuReportColumns.Any(perm =>
                                    perm.PerColumnView == true
                                    && (perm.PerColumnName == "Vendor-Group"
                                    || perm.PerColumnName == "Guide-Group"
                                    || perm.PerColumnName == "Guide-List"
                                    || perm.PerColumnName == "Group City Room-Day"
                                    || perm.PerColumnName == "Country-Customer Group Balance"
                                    || perm.PerColumnName == "Country-Customer Group Revenue"
                                    || perm.PerColumnName == "Group-Guide"
                                    || perm.PerColumnName == "Customer Refund"
                                    || perm.PerColumnName == "Group Region Room-Day")))
                                {
                                    Permissions.MenuGroupReportView = false;
                                }
                                else
                                {
                                    Permissions.MenuGroupReportView = true;
                                }
                                Permissions.MenuReportView = true;
                                foreach (var report in MenuReportColumns)
                                {
                                    switch (report.PerColumnName)
                                    {
                                        case "Customer A/R Days":
                                            {
                                                Permissions.MenuReportCustomerARDaysView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerARDaysEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer Invoice Summary":
                                            {
                                                Permissions.MenuReportCustomerInvSumView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerInvSumEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer Payment":
                                            {
                                                Permissions.MenuReportCustomerPaymentView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerPaymentEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer Payment Type":
                                            {
                                                Permissions.MenuReportCustomerPayTypeView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerPayTypeEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer-Group":
                                            {
                                                Permissions.MenuReportCustomerGroupView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerGroupEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            // will be removed
                                                Permissions.MenuReportGroupBreakDownView = true;
                                                Permissions.MenuReportGroupBreakDownEdit = true;
                                            }
                                            break;
                                        case "Vendor-Group":
                                            {
                                                Permissions.MenuReportVendorGroupView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportVendorGroupEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Guide-Group":
                                            {
                                                Permissions.MenuReportGuideGroupView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportGuideGroupEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Guide-List":
                                            {
                                                Permissions.MenuReportGuideListView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportGuideListEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Group City Room-Day":
                                            {
                                                Permissions.MenuReportGrpCityRoomDayView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportGrpCityRoomDayEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Country-Customer Group Balance":
                                            {
                                                Permissions.MenuReportCntCustGrpBalanceView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCntCustGrpBalanceEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Country-Customer Group Revenue":
                                            {
                                                Permissions.MenuReportCntCustGrpRevenueView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCntCustGrpRevenueEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Group-Guide":
                                            {
                                                Permissions.MenuReportGroupGuideView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportGroupGuideEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Customer Refund":
                                            {
                                                Permissions.MenuReportCustomerRefundView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportCustomerRefundEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        case "Group Region Room-Day":
                                            {
                                                Permissions.MenuReportGrpRegRoomDayView = report.PerColumnView != null ? Convert.ToBoolean(report.PerColumnView) : false;
                                                Permissions.MenuReportGrpRegRoomDayEdit = report.PerColumnEdit != null ? Convert.ToBoolean(report.PerColumnEdit) : false;
                                            }
                                            break;
                                        default:
                                            break;
                                    };
                                }
                            }
                            else
                            {
                                Permissions.MenuReportView = false;
                            }
                        }
                        else
                        {
                            IsCreateSession[System.Web.HttpContext.Current.User.Identity.Name] = true;
                        }
                    }
                }
                if ((Permissions.MenuManageView == true) || (Permissions.MenuSetupView == true) || (Permissions.MenuReportView == true))
                {
                    Permissions.MenuView = true;
                }
                else
                {
                    Permissions.MenuView = false;
                }
            }
            if (data.UserRole == "admin")
            {
                Permissions.MenuView = true;
                Permissions.MenuManageView = true;
                Permissions.MenuManageEmployeeView = true;
                Permissions.MenuManageEmployeeEdit = true;
            }
            return Permissions;
        }
    }
}